Open Platform
Skip to content

Bluetooth broadcast meter reading ​

https://cnapi.ttlock.com/v3/electricMeter/syncSameAdmin

This interface supports the meter reading function by reporting 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.ttlock.com/v3/electricMeter/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 'electricCurrent=1' \
--data-urlencode 'totalKwh=11' \
--data-urlencode 'maxPower=100' \
--data-urlencode 'remainderKwh=100' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYAssigned client_id from created application
accessTokenStringYAccess token, obtain by calling get access token API
dateLongYCurrent time (timestamp, in milliseconds)
macStringYElectricity Meter MAC
payModeIntYOperating modes: 0 - Energy metering mode; 1 - Prepaid mode
onOffIntYPower-on status: 0 - No 1 - Yes
voltageStringYVoltage
electricCurrentStringYCurrent
totalKwhStringYTotal electricity consumption
maxPowerStringYMaximum power
remainderKwhStringYRemaining battery power

3 Response and example ​

NameTypeDescription
errcodeIntError code
errmsgStringError message
descriptionStringError Description
json
{
    "errcode": 0,
    "errmsg": "none error message or means yes",
    "description": "表示成功或是"    
}
CopyRight © 2012-2026 TTLock.All Rights Reserved