Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibm-watson-iot/iot-nodejs
Client libraries and samples for connecting to IBM Watson IoT using nodejs
https://github.com/ibm-watson-iot/iot-nodejs
iot nodejs sdk
Last synced: 3 months ago
JSON representation
Client libraries and samples for connecting to IBM Watson IoT using nodejs
- Host: GitHub
- URL: https://github.com/ibm-watson-iot/iot-nodejs
- Owner: ibm-watson-iot
- License: epl-1.0
- Created: 2015-07-01T14:40:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T09:29:35.000Z (11 months ago)
- Last Synced: 2024-10-27T23:59:59.547Z (3 months ago)
- Topics: iot, nodejs, sdk
- Language: JavaScript
- Homepage: https://internetofthings.ibmcloud.com
- Size: 1.76 MB
- Stars: 180
- Watchers: 55
- Forks: 100
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nodejs - iot-nodejs - Client libraries and samples for connecting to IBM Watson IoT using nodejs. ![](https://img.shields.io/github/stars/ibm-watson-iot/iot-nodejs.svg?style=social&label=Star) (Repository / IoT)
README
# IBM Watson IoT Platform Javascript SDK
[![Build Status](https://travis-ci.org/ibm-watson-iot/iot-nodejs.svg?branch=master)](https://travis-ci.org/ibm-watson-iot/iot-nodejs)
[![Coverage Status](https://coveralls.io/repos/github/ibm-watson-iot/iot-nodejs/badge.svg?branch=master)](https://coveralls.io/github/ibm-watson-iot/iot-nodejs?branch=master)
[![GitHub issues](https://img.shields.io/github/issues/ibm-watson-iot/iot-nodejs.svg)](https://github.com/ibm-watson-iot/iot-nodejs/issues)
[![GitHub](https://img.shields.io/github/license/ibm-watson-iot/iot-nodejs.svg)](https://github.com/ibm-watson-iot/iot-nodejs/blob/master/LICENSE)## Installation
```
npm install @wiotp/sdk --save
```## Usage
### Application
```javascript
import {ApplicationClient, ApplicationConfig} from '@wiotp/sdk';let appConfig = ApplicationConfig.parseEnvVars();
let appClient = new ApplicationClient(appConfig);
appClient.connect();
// Do stuff
appClient.disconnect();
```### Device
```javascript
import {DeviceClient, DeviceConfig} from '@wiotp/sdk';let deviceConfig = DeviceConfig.parseEnvVars();
let deviceClient = new DeviceClient(deviceConfig);
deviceClient.connect();
// Do stuff
deviceClient.disconnect();
```### Gateway
```javascript
import {GatewayClient, GatewayConfig} from '@wiotp/sdk';let gwConfig = GatewayConfig.parseEnvVars();
let gwClient = new GatewayClient(gwConfig);
gwClient.connect();
// Do stuff
gwClient.disconnect();
```## Development
### Build
```
npm i
npm run build
```## Publish
```
npm login
npm publish .
```