Bluetooth broadcast meter reading
https://cnapi.sciener.com/v3/waterMeter/syncSameAdmin
This interface supports the meter reading function by reporting water meter data through the broadcast reading function in the APP SDK.
1 Request example
POST, ContentType:application/x-www-form-urlencoded
json
curl --location -g --request POST 'https://cnapi.sciener.com/v3/waterMeter/syncSameAdmin'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'mac=11:22:33:44:55:66' \
--data-urlencode 'payMode=1' \
--data-urlencode 'onOff=1' \
--data-urlencode 'voltage=220.00' \
--data-urlencode 'totalM3=11' \
--data-urlencode 'remainderM3=100' \
--data-urlencode 'magneticInterference=1' \
--data-urlencode 'waterValveMalfunction=1' \
--data-urlencode 'remainderM3=100' \
--data-urlencode 'date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | Assigned client_id from created application |
| accessToken | String | Y | Access token, obtain by calling get access token API |
| date | Long | Y | Current time (timestamp, in milliseconds) |
| mac | String | Y | Water Meter MAC |
| payMode | Int | Y | Operating modes: 0 - Energy metering mode; 1 - Prepaid mode |
| onOff | Int | Y | Water supply status: 0 - No 1 - Yes |
| electricQuantity | String | Y | Battery |
| totalM3 | String | Y | Total water consumption |
| remainderM3 | String | Y | Remaining water volume |
| magneticInterference | Int | Y | Magnetic interference |
| waterValveMalfunction | Int | Y | Water valve malfunction |
3 Response and example
| Name | Type | Description |
|---|---|---|
| errcode | Int | Error code |
| errmsg | String | Error message |
| description | String | Error Description |
json
{
"errcode": 0,
"errmsg": "none error message or means yes",
"description": "表示成功或是"
}