Skip to main content

Hub

1.Hub.getState

Get Hub's State

BDDP

ParamValueDesc
methodHub.getStateGet Hub's State
targetDevice<String,Necessary>DeviceId of the Hub you use;
token<String,Necessary>Net token of the Hub you use;

BUDP

ParamValueDesc
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

ParamValueDesc
methodHub.setWiFiSet 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

ParamValueDesc