1.Hub.getStateโ
Get Hub's State
BDDP
| Param | Value | Desc |
|---|
| method | Hub.getState | Get Hub's State |
| targetDevice | <String,Necessary> | DeviceId of the Hub you use; |
| token | <String,Necessary> | Net token of the Hub you use; |
BUDP
| Param | Value | Desc |
|---|
| data.version | <String,Necessary> | Hub's Version; |
| data.wifi.enable | <boolean,Necessary> | Is WiFi Connected; |
| data.wifi.ssid | <String,Necessary> | Current connected Wi-Fi; |
| data.wifi.ip | <String,Necessary> | Current ip of Wi-Fi; |
| data.wifi.gateway | <String,Necessary> | Current Gateway of Wi-Fi; |
| data.wifi.mask | <String,Necessary> | Current Subnet Mask of Wi-Fi |
| data.eth.enable | <boolean,Necessary> | Is Ethernet Connected |
| data.eth.ip | <String,Necessary> | Current ip of Ethernet; |
| data.eth.gateway | <String,Necessary> | Current ip of Ethernet; |
| data.eth.mask | <String,Necessary> | Current Gateway of Ethernet; |
2.Hub.setWiFiโ
Set hub's WiFi Info when it is online. Please check this to setup WiFi when hub is offline.
BDDP
| Param | Value | Desc |
|---|
| method | Hub.setWiFi | Set Hub's Wi-Fi Info |
| targetDevice | <String,Necessary> | DeviceId of the Hub you use; |
| token | <String,Necessary> | token of the Hub you use; |
| params.ssid | <String,Necessary> | The Wi-Fi's SSID you want to connect; |
| params.password | <String,Necessary> | The Wi-Fi's Password you want to connect; |
BUDP