Upload the network info of a Wifi lock

https://api.sciener.com/v3/wifiLock/updateNetwork

Call this API after you have successfully configured the network of the Wifi lock, if the Wifi lock is not connected to the Wifi lock server, this API will response with failed error message.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
networkNameStringNThe network name lock connected to
wifiMacStringNWifi Mac
rssiIntNWifi RSSI
useStaticIpBooleanNUse static IP or not
ipStringNStatic IP address
subnetMaskStringNSubnet mask
defaultGatewayStringNDefault gateway
preferredDnsStringNPreferred DNS
alternateDnsStringNAlternate DNS
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message