Method | Description |
connect | Establishes MQTT connection |
disconnect | Closes MQTT connection |
subscribe | Subscribes to topic over MQTT |
unsubscribe | Unsubscribes from topic over MQTT |
publish | Publishes message over MQTT |
registerMqttCallback | Registers MQTT callback function |
registerUserCallback | Registers user callback function |
isMqttConnected | Checks whether MQTT is normally connected |
getConnectState | Gets MQTT connection status |
setReconnectInterval | Sets MQTT reconnection attempt interval |
setMessageTimout | Sets message sending timeout period |
setKeepaliveInterval | Sets MQTT keepalive interval |
Method | Description |
gatewayInit | Initializes gateway |
isSubdevStatusOnline | Determines whether subdevice is connected |
updateSubdevStatus | Updates subdevice's connection status |
gatewaySubdevGetConfigList | Gets subdevice list from configuration file |
gatewaySubdevOnline | Proxies subdevice connection |
gatewaySubdevOffline | Proxies subdevice disconnection |
gatewaySubdevBind | Binds subdevice |
gatewaySubdevUnbind | Unbinds subdevice |
gatewaySubdevSubscribe | Proxies subdevice subscription |
Method | Description |
dynregDevice | Gets the dynamic registration information of device |
Method | Description |
otaInit | Initializes OTA |
otaIsFetching | Determines whether the download is in progress |
otaIsFetchFinished | Determines whether the download is completed |
otaReportUpgradeSuccess | Reports update success message |
otaReportUpgradeFail | Reports update failure message |
otaIoctlNumber | Gets the information of the downloaded firmware in int type, such as the size |
otaIoctlString | Gets the information of the downloaded firmware in String type, such as MD5 |
otaResetMd5 | Resets MD5 information |
otaMd5Update | Updates MD5 information |
httpInit | Initializes HTTP |
otaReportVersion | Reports the information of current firmware version |
otaDownloadStart | Starts firmware download |
otaFetchYield | Reads firmware |