1.CSDevice.sendCommandโ
Send data to device, and will wait until response timeout(default is 4s);
BDDP
Param | Value | Desc |
---|
method | CSDevice.sendCommand | Send data to device (fPort is 1),and wait for response from device. |
targetDevice | <String,Necessary> | DeviceId of the CSDevice you use; |
token | <String,Necessary> | Net token of the CSDevice you use;You can get it here |
params.payload | <Array<byte>,Necessary> | Payload of request |
BUDP
Param | Value | Desc |
---|
data.payload | <Array<byte>,Necessary> | Payload of response |
2.CSDevice.downlinkโ
Send data to device, don't wait for response.
BDDP
Param | Value | Desc |
---|
method | CSDevice.downlink | Send data to device |
targetDevice | <String,Necessary> | DeviceId of the CSDevice you use; |
token | <String,Necessary> | Net token of the CSDevice you use; |
params.payload | <Array<byte>,Necessary> | Payload of request |
params.confirmed | <Bool,Necessary> | Confirmed downlink or Unconfirmed downlink |
params.fPort | <Integer,Necessary> | fPort for downlink |
BUDP
Param | Value | Desc |
---|
data.fCnt | <Integer,Necessary> | fCnt of this downlink |
3.Callbacksโ
You can receive it with Http Callback API or MQTT report topic
BUDP
Param | Value | Desc |
---|
data.payload | <Array<byte>,Necessary> | Payload of uplink |