1.Manage.addYoLinkDeviceโ
Add YoLink device by sn code
BDDP
Param | Value | Desc |
---|
method | Manage.addYoLinkDevice | Add YoLink Device and Get Net Token |
params.sn | <String,Necessary> | Device's SN Code,get it from QR-Code on the device |
BUDP
Param | Value | Desc |
---|
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
Param | Value | Desc |
---|
method | Manage.delYoLinkDevice | Delete YoLink device and revoke Net Token for this device |
params.deviceId | <String,Necessary> | DeviceId/DeviceEUI of the device |
BUDP
Param | Value | Desc |
---|
data.success | <Boolean,Necessary> | Indicates whether the operation was successful or not |
3.Manage.setCallbackURLโ
Set Callback_URL <Just work at Staging Env>
BDDP
Param | Value | Desc |
---|
method | Manage.setCallbackURL | Set Callback URL(For Http Callback) |
params.url | <String,Optional> | Set Staging Env's report callback_url; If null, use current url; |
BUDP
Param | Value | Desc |
---|
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
Param | Value | Desc |
---|
method | Manage.syncAccountDevice | Get 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
Param | Value | Desc |
---|
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
Param | Value | Desc |
---|
method | Manage.retrieveYoLinkDevice | Retrieve YoLink device info |
params.sn | <String,Necessary> | Device's SN Code,get it from QR-Code on the device |
BUDP
Param | Value | Desc |
---|
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. |