Gateway associated with the water meter
https://cnapi.ttlock.com/v3/waterMeter/gatewayList
If the water meter administrator is also the gateway administrator, this interface will return the gateway located near the water meter.
1 Request example
POST, ContentType:application/x-www-form-urlencoded
json
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/waterMeter/gatewayList'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'waterMeterId=3001' \
--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) |
| waterMeterId | String | Y | Water Meter ID |
3 Response and example
| Name | Type | Description |
|---|---|---|
| list | JSONObject | List |
Objects in the list
| Name | Type | Description |
|---|---|---|
| rssi | Int | Signal strength between the gateway and the lock, according to the following standards: greater than -75 is strong, greater than -85 is medium, less than -75 is weak. |
| gatewayName | String | Gateway Name |
| gatewayVersion | int | Gateway version |
json
{
"list": [
{
"rssi": -65,
"gatewayName": "a gateway",
"gatewayVersion": 2
}
]
}