Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-ibm-wiotp-device-ops

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-ibm-wiotp-device-ops

A collection of Node-RED nodes that can perform a wide range of device and gateway operations on the Watson IoT platform

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

node-red-contrib-ibm-wiotp-device-ops

A collection of Node-RED nodes to perform device and gateway operations using the Watson IoT Platform.

IBM Watson IoT Device / Device Type Operations

Install

Install from npm

npm install node-red-contrib-ibm-wiotp-device-ops

##Device Type Manager node:

Device Type Manager node can perform actions on device types in the IBM Watson IoT Platform. For some fields, the value can be passed in the msg. Any fields set on the node explicitly take precedence.

Authentication

Authentication type :
  1. Bluemix Service - Uses the Watson IoT Platform service bound to the application.
  2. API Key - Use an API key for your Watson IoT Platform organization.

Device Type

Available for delete, retrieve single device type or update operations, this specifies the Device type for the operation. May be specified by msg.payload.deviceType.

Class Id

Available for create operation. Either 'Gateway' or 'Device'.

Operations

Specifies the operation to be performed. For more information, read the Watson IoT Platform documentation. May be specified by msg.operation.xxx where xxx values supported are:

  • GetAll
  • Create
  • Delete
  • Get
  • Update

Serial Number (Optional property)

Serial Number can form one aspect of a devices identifying attributes. Serial numbers are likely to be unique within a model number, but cannot be taken as a device identifier alone. May be specified by msg.payload.serialNumber.

Device Info Description (Optional property)

This will be copied to all devices of this type when they are added to the Watson IoT Platform. May be specified by msg.payload.infoDescription.

Manufacturer (Optional property)

The attribute lists the manufacturer of devices in this device type. May be specified by msg.payload.manufacturer.

Firmware Version (Optional property)

Current firmware version installed on the device. May be specified by msg.payload.firmwareVersion.

Model (Optional property)

This denote groups of devices that serve the same function or have the same characteristics, but may have different hardware versions. May be specified bypayload as msg.payload.model.

Hardware Version of a device (Optional property)

May be specified by msg.payload.hardwareVersion.

Device Class (Optional property)

A class of devices is a grouping of devices sharing certain characteristics. A device class usually serves a descriptive function. May be specified by msg.payload.deviceClass.

Descriptive Location (Optional property)

The descriptive location of a device is a separate attribute of a device, and gives a descriptive location rather than a specific measured location. May be specified by msg.payload.descriptiveLocation.

Metadata (Optional property)

Metadata can be used to define custom attribute fields that are not provided by the Watson IoT Platform. May be specified by msg.payload.metadata.


Device manager node :

Device manager node lets you perform actions on devices that are connected to IBM Watson IoT Platform. For some fields, the value can be passed in the msg. Any fields set on the node explicitly take precedence.

Authentication

Authentication type:
  1. Bluemix Service - Use the Watson IoT service bound to the application.
  2. API Key - Use an API key for your Watson IoT Platform organization.

Device Type

The device type for the operation. May be specified by msg.payload.deviceType.

Device Operation

Operations that can be performed on the device on Watson IoT Platform. For more information, read the Watson IoT Platform documentation. May be specified by msg.operation.xxx where xxx values supported are:

  • GetAll
  • Create
  • Get
  • Update
  • Delete
  • GetLoc
  • UpdateLoc
  • GetDm

Examples

Create device using msg.payload.:


    {
        "deviceId": "string",
        "authToken": "string",
        "deviceInfo": {
            "serialNumber": "string",
            "manufacturer": "string",
            "model": "string",
            "deviceClass": "string",
            "description": "string",
            "fwVersion": "string",
            "hwVersion": "string",
            "descriptiveLocation": "string"
        },
        "location": {
            "longitude": 0,
            "latitude": 0,
            "elevation": 0,
            "accuracy": 0,
            "measuredDateTime": "2016-08-07T18:50:51.553Z"
        },
        "metadata": {}
    }

Bulk create/delete, pass the the input as an array in msg.payload:

    [
      {
        "typeId": "RaspberryPi",
        "deviceId": "pi01"
      },
        {
        "typeId": "RaspberryPi",
        "deviceId": "pi02"
      }
    ]

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

Keywords

FAQs

Package last updated on 08 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc