Skip to main content

Manage

caution

CSID Special

1.Manage.addYoLinkDevice

Add YoLink device by sn code

BDDP

ParamValueDesc
methodManage.addYoLinkDeviceAdd YoLink Device and Get Net Token
params.sn<String,Necessary>Device's SN Code,get it from QR-Code on the device

BUDP

ParamValueDesc
data.deviceId<String,Necessary>The DeviceId;
data.deviceUUID<String,Necessary>The device's UUID;
data.token<String,Necessary>Hub's net token; It's necessary when you send message to this device;
data.name<String,Necessary>Device's product name;
data.type<String,Necessary>Device's type name; like 'Hub', Could Call <Hub.*> with this device.

2.Manage.delYoLinkDevice

Delete YoLink device by deviceId

BDDP

ParamValueDesc
methodManage.delYoLinkDeviceDelete YoLink device and revoke Net Token for this device
params.deviceId<String,Necessary>DeviceId/DeviceEUI of the device

BUDP

ParamValueDesc
data.success<Boolean,Necessary>Indicates whether the operation was successful or not

3.Manage.setCallbackURL

Set Callback_URL <Just work at Staging Env>

BDDP

ParamValueDesc
methodManage.setCallbackURLSet Callback URL(For Http Callback)
params.url<String,Optional>Set Staging Env's report callback_url; If null, use current url;

BUDP

ParamValueDesc
data.id<String,Necessary>The CSID
data.url<String,Necessary>Current Callback URL. UpLink will report to MQTT Channel if it's "MQTT"
data.name<String,Necessary>The CS Name

4.Manage.syncAccountDevice

Sync YoSmart Account's Device List

BDDP

ParamValueDesc
methodManage.syncAccountDeviceGet YoSmart Account's Device List
params.accessToken<String,Necessary>Your YoSmart Account access token, get it from OAuth2.0 API with your yosmart account

BUDP

ParamValueDesc
data.list[*].deviceId<String,Necessary>The DeviceId;
data.list[*].deviceUUID<String,Necessary>The device's UUID;
data.list[*].token<String,Necessary>The device's net token; It's necessary when you send message to this device;
data.list[*].name<String,Necessary>Device's product name;
data.list[*].type<String,Necessary>Device's type name; Such as 'Hub',Could call method <Hub.*> with this device;

5.Manage.retrieveYoLinkDevice

Retrieve basic information of YoLink device by sn code

BDDP

ParamValueDesc
methodManage.retrieveYoLinkDeviceRetrieve YoLink device info
params.sn<String,Necessary>Device's SN Code,get it from QR-Code on the device

BUDP

ParamValueDesc
data.deviceId<String,Necessary>The DeviceId;
data.name<String,Necessary>Device's product name;
data.modelName<String,Necessary>Device's model name;
data.type<String,Necessary>Device's type name; like 'Hub', Could Call <Hub.*> with this device.