POST /protocols/m-bus/devices/
FROM API REVISION 6.0
This resource allow you to set 3 property on a M-Bus device.
Each parameter can be sent separately.
Invalid value, an error 422 Unprocessable Entity is returned.
Used when you are operating a browser without access to the header parameter. This allows you to choose which encoding you want to use for the response:
All these resources can be used according what the resource allows.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
There are multiple possible values according the resource:
If this parameter is not present during the request, and error 415 Unsupported Media Type will be thrown.
The Content-Length entity-header field indicates the size of the entity-body.
The id of a M-bus device.
Object Name: Device
Property Name | Type | Description | Method |
---|---|---|---|
Id | Integer | Type : Long | GET |
PrimaryAddress | Integer | Allowed value : 0-255. | GET POST |
SecondaryAddress | Integer | GET | |
CommunicationSpeed | Integer | The communication speeds of the meter. Possible values :
|
GET POST |
ManufacturerId | Integer | GET | |
Medium | Integer | GET | |
Version | Integer | GET | |
PoolingPeriod | Integer | POST | |
Points | Array<Point> | Array of M-Bus device point. | GET |
URL Example: https://0.0.0.0/api/rest/v1/protocols/m-bus/devices/116878982826457
{
"communicationSpeed": 300,
"primaryAddress": 12,
"poolingPeriod": 12
}
URL Example: https://0.0.0.0/api/rest/v1/protocols/m-bus/devices/116878982826457
<?xml version="1.0" encoding="utf-8"?>
<Device>
<communicationSpeed>300</communicationSpeed>
<primaryAddress>12</primaryAddress>
<poolingPeriod>12</poolingPeriod>
</Device>