News&Events
About
API Ref
API Directory
UserManual
nodeMCU
python
PC Software
EnergyMeter
WiFi HT
downloads

gateway/update

update device

URL

http://www.lewei50.com/api/v1/gateway/update/{device ID}

UserKey Required

Yes

Parameter

None

Http Type

post

Post Data

{
    "name":"test device",
    "description":"test des",
    "isControlled":true,
    "internetAvailable":true,
    "apiAddress":"http://192.168.1.105/api"
}

Post Data Remark

  Required Type Description
name Yes string Device name

Return Data Format

json

Return Data Example

{
    "Successful": false, 
    "Message": "Invalid device no"
}

Return Data Remark

  Type Description
Successful boolean Successful
Message string Message if error

Description

Automatically records the user equipment public IP, public API address information and update.

API Online Test Tool

Online Test