add device
http://www.lewei50.com/api/v1/gateway/add
Yes
None
post
{ "idName":"01", "name":"gateway1", "typeName":"arduino", "description":"test", "isPublic":true }
Required | Type | Description | |
---|---|---|---|
idName | Yes | string | Device ID |
name | Yes | string | Device name |
typeName | Yes | string | Device type |
description | No | string | Device description |
isPublic | No | boolean | Whether public |
json
{ "Successful": false, "Message": "Invalid gateway type name." }
Type | Description | |
---|---|---|
Successful | boolean | Successful |
Message | string | Message if error |
arduino-----Arduino
art---------ART
lw-board----lw-board
other-------other