iotclient
This iotClient module can be used for developing node.js client code for IBM IoT Foundation
Install
Install from npm
npm install iotclient
Utility
This iotclient module can be used in an app to connect to IBM IoT Cloud.
This can be used in both
- Quickstart flow
- Registered flow
Multiple Callbacks for subscriptions
- Device Event - Subscribe to device events,
- Device Command - Subscribe to device commands, on the behalf of a device,
- Device Status - Subscribe to device status
- Application Status - Subscribe to application status
Publishing
- Device Events, on the behalf of a device and
- Device Commands, for registered devices
Usage
- Install the package
- Instantiate the app client
var IoTAppClient = require("iotclient");
var appId = "someappid";
var apiKey = null;
var apiToken = null;
var client = new IoTAppClient(appId, apiKey, apiToken);
client.connectBroker(1883);