Giter Site home page Giter Site logo

node-red-contrib-scx-ibmiotapp's Introduction

ibmiotapp

This is a Node-RED node meant for connecting to both the Quickstart and Registered flows in IBM Watson IoT Platform. This Node-RED node replaces the node-red-iotcloudshapeshift. This Node-RED node can be used within, as well as, outside the IBM Bluemix environment.

In case it is used within the IBM Bluemix environment, the node is smart enough to detect whether an IoT service is bound to this application and provides the respective drop-down options. In case no IoT service is bound to this application, the drop-down, for authentication, does not contain "Bluemix Service".

Install

Install from npm

npm install node-red-contrib-scx-ibmiotapp

Supported Features

Feature Supported? Description
Application connectivity Connect your application(s) to Watson IoT Platform with ease using this library. Click here for detailed information on how applications can subscribe to device events and publish commands to devices.
SSL/TLS support By default, this library connects your applications securely to Watson IoT Platform registered service. Ports 8883(default one) and 443 support secure connections using TLS with the MQTT and HTTP protocol. Also, note that the library uses port 1883(unsecured) to connect to the Quickstart service.
Auto reconnect Enables device and gateway to automatically reconnect to Watson IoT Platform while they are in a disconnected state. Further details here.
Multi-format support JSON, Buffer, Number String, Boolean and Other types.
Websocket Currently not supported.

Usage

IoT App In Node

In case of Registered flow, the App In node can be used to

  1. Receive device events,
  2. Receive device status,
  3. Receive device commands, on the behalf of a device, and
  4. Receive application status.

In case of Quickstart flow, the App In node can be used to

  1. Receive device events,
  2. Receive device status and
  3. Receive application status.

IoT App Out Node

In case of registered flow, the App Out node can be used to

  1. Send device commands and
  2. Send device events, on the behalf of a device.

In case of quickstart flow, the App Out node can be used to

  1. Send device events, on the behalf of a device.

Usage outside IBM Bluemix environment

In case the out and in nodes need to run outside the IBM Bluemix environment, use the API Key dropdown option

  1. On selecting the API Key, API Key and API Token options are made available
  2. The API Key and Token can be shared across multiple nodes

Supported formats

  1. JSON,
  2. buffer,
  3. number
  4. String
  5. boolean and Other types.

JSON

When the format is specified as json, one can send the JSON object or the Stringify version of the JSON object using the App Out Node. Upon receiving from the Watson IoT Platform, the App In Node parses and sends the JSON object to the output.

Buffer

The buffer should be sent as is without doing any conversion. Upon receiving it, the App In Node forwards the buffer as is without any conversion.

Other types

Similar to buffer, the IoT App Out Node sends the payload as is in the case of number, string, boolean and other types. Upon receiving them, the App In Node forwards the values as Strings.

Note

For Device Id, this node ignores any character other than alphanumeric, the period symbol, hyphen and the underscore character.

Authors

Amit M Mangalvedkar (@amitmangalvedka)
Jeffrey Dare (@jeffdare)

Copyright and license

Copyright 2014, 2016 IBM Corp. under the Apache 2.0 license.

=======

node-red-contrib-scx-ibmiotapp's People

Contributors

amitmangalvedkar avatar amprasanna avatar dwc1 avatar jeffdare avatar knolleary avatar sathipal avatar slaupster avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.