Skip to main content

CSDevice

1.CSDevice.sendCommand

Send data to device, and will wait until response timeout(default is 4s);

BDDP

ParamValueDesc
methodCSDevice.sendCommandSend 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

ParamValueDesc
data.payload<Array<byte>,Necessary>Payload of response

Send data to device, don't wait for response.

BDDP

ParamValueDesc
methodCSDevice.downlinkSend 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

ParamValueDesc
data.fCnt<Integer,Necessary>fCnt of this downlink

3.Callbacks

You can receive it with Http Callback API or MQTT report topic

BUDP

ParamValueDesc
data.payload<Array<byte>,Necessary>Payload of uplink