1、首先消息头不一样: 新增设备接口,消息头:http://{{ip}}:2480/api/cos/v1/devices?apikey={{apikey}} //注意devices 批量新增设备接口,消息头:http://{{ip}}:2480/api/cos/v1/batchdevices?apikey={{apikey}} //batchdevices 2、消息头不一样: 新增设备消息体: { "deviceinfo": { "serialnum" : "master2_device13", "modelcode" : "master_modelcode", "productno" : "20", "devicename" : "test20171027" , "devicedesc" : "test20171027desc", "lng" : "180", "lat" : "102", "authority":"public" }} 批量新增设备消息体:{ "deviceinfo": { "productno": "20", "modelcode": "master_modelcode", "devicedetails": [ { "serialnum": "ZTE_water_04", "authority": "private" }, { "serialnum": "ZTE_water_05", "authority": "public" } ] } }
1、首先消息头不一样:
新增设备接口,消息头:
http://{{ip}}:2480/api/cos/v1/devices?apikey={{apikey}} //注意devices
批量新增设备接口,消息头:
http://{{ip}}:2480/api/cos/v1/batchdevices?apikey={{apikey}} //batchdevices
2、消息头不一样:
新增设备消息体:
{
"deviceinfo":
{
"serialnum" : "master2_device13",
}
}
批量新增设备消息体:
{
}