-
Notifications
You must be signed in to change notification settings - Fork 28
Classic API: Cloud
Gyeonghwan Hong edited this page Dec 21, 2020
·
7 revisions
Parent Document: ANT APIs
Cloud API is the set of APIs for reporting the output of IoT applications to the cloud server.
You need to load cloud API module before you use its API as following.
var cloudApi = require(process.env.ANT_BIN_DIR + '/api/cloud');
var googleCloudPlugin = require(process.env.ANT_BIN_DIR + '/api/cloud/google-cloud-plugin');- MQTTConnection CloudAPI.connectMQTT(String bridgeHostname, Integer bridgePort, String clientId, String username, String protocol, String secureProtocol, Function callback)
- void MQTTConnection.connect(Object connectionArgs, Function callback)
- void MQTTConnection.subscribe(String mqttTopic, Function callback, Integer qos)
- void MQTTConnection.unsubscribe(String mqttTopic)
- void MQTTConnection.publish(String mqttTopic, String message, Integer qos)
- void MQTTConnection.close(void)
- GoogleCloudConnection GoogleCloudPlugin.connectSecure(Object cloudInfo)
- void GoogleCloudConnection.connectSecure(Function callback)
- void GoogleCloudConnection.setCloudInfo(Object cloudInfo)
- void GoogleCloudConnection.close(void)
- void GoogleCloudConnection.subscribe(String messageType, Function callback)
- void GoogleCloudConnection.subscribeEvents(Function callback)
- void GoogleCloudConnection.subscribeState(Function callback)
- void GoogleCloudConnection.publish(String messageType, String message)
- void GoogleCloudConnection.publishEvents(String message)
- void GoogleCloudConnection.publishState(String message)
- void GoogleCloudConnection.publishConfig(String message)
- Home
- About
- Getting Started
-
ANT APIs
- ANT Classic API
- ANT Lite API
- Getting Involved