<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   -   [mpo](#mpo)
-   [StromDAO Business Object: MPO](#stromdao-business-object-mpo)
    -   [approveMP](#approvemp)
    -   [storeReading](#storereading)
    -   [storeReading](#storereading-1)
    -   [lastDelivery](#lastdelivery)
    -   [readings](#readings)

## mpo

[MPO.js:12-124](https://github.com/energychain/StromDAO-BusinessObject/blob/b78d7bf63853a782fc353ddd4c5acf26b381e9ea/MPO.js#L12-L124 "Source code on GitHub")

# StromDAO Business Object: MPO

Meter Point Operator handling for StromDAO Energy Blockchain.

In general a Meter Point Operating (Contract) handles meter readings and issues Deliverables as soon as a new reading is received.

**Parameters**

-   `obj_or_address`  

**Meta**

-   **author**: Thorsten Zoerner thorsten.zoerner@stromdao.de

## approveMP

[MPO.js:25-32](https://github.com/energychain/StromDAO-BusinessObject/blob/b78d7bf63853a782fc353ddd4c5acf26b381e9ea/MPO.js#L25-L32 "Source code on GitHub")

Approve a new Blockchain Address to this contract instance. Limit: Only-Owner

**Parameters**

-   `_meter`  address
-   `_role`  Eq. to 4= Consumer or 5= Producer

## storeReading

[MPO.js:38-46](https://github.com/energychain/StromDAO-BusinessObject/blob/b78d7bf63853a782fc353ddd4c5acf26b381e9ea/MPO.js#L38-L46 "Source code on GitHub")

-   **See: approveMP()**

Stores a reading to this contract instance. Requires sender to be approved Meter-Point

**Parameters**

-   `_reading`  

## storeReading

[MPO.js:51-59](https://github.com/energychain/StromDAO-BusinessObject/blob/b78d7bf63853a782fc353ddd4c5acf26b381e9ea/MPO.js#L51-L59 "Source code on GitHub")

Allows a test commit to check if it fails. Promise that might be used to validate a Meter-Point is fully connected.

**Parameters**

-   `_reading`  

## lastDelivery

[MPO.js:64-71](https://github.com/energychain/StromDAO-BusinessObject/blob/b78d7bf63853a782fc353ddd4c5acf26b381e9ea/MPO.js#L64-L71 "Source code on GitHub")

Returns last delivery issued for a Meter-Point

**Parameters**

-   `_meterpoint`  

## readings

[MPO.js:76-83](https://github.com/energychain/StromDAO-BusinessObject/blob/b78d7bf63853a782fc353ddd4c5acf26b381e9ea/MPO.js#L76-L83 "Source code on GitHub")

Returns last reading for a Meter-Point

**Parameters**

-   `_meterpoint`  
