@wapice/node-red-contrib-iot-ticket-connector 0.1.4
Node-RED node for IoT-TICKET Connector
Node-RED IoT-TICKET Connector
A Node-RED node for connecting to IoT-TICKET platform to fetch and send data.
License
This Node-RED node is provided by Wapice Ltd. and is intended for use only in connection with the IoT-TICKET product.
The source code is publicly available, but the software is not open source. Use, modification, or redistribution outside the IoT-TICKET product requires prior written permission from Wapice Ltd.
See LICENSE file for full terms.
Installation
Install via npm:
npm install @wapice/node-red-contrib-iot-ticket-connector
Or copy the files to your Node-RED nodes directory.
Usage
Mode is determined by msg.mode ("Fetch" or "Send").
Fetch Mode
- Configure: Server address, API Username, API Password, OAuth2 Realm
- Input message:
msg.mode = "Fetch",msg.attributeIds(array or string),msg.numValues(number, default 1) - Outputs: [raw JSON, parsed value (if single attribute and single value)]
Send Mode
- Configure: Server address, MQTT Port, CA Certificate, Organization ID, MQTT Username, MQTT Password, Device ID, Subscribe to Commands
- Input message:
msg.mode = "Send",msg.payload(data),msg.type("telemetry" or "event", default "telemetry") - Outputs: [success confirmation, command messages (if subscribed)]
- Optional: Subscribe to Commands - maintains persistent MQTT connection to receive command messages from IoT-TICKET
Command Reception
When "Subscribe to Commands" is enabled, the node maintains a persistent MQTT connection and subscribes to:
command/<organization-id>/<device-id>/req/#
Received command messages are output on the second output with msg.mode = "Command".
MQTT Topics
- Telemetry:
telemetry/<organization-id>/<device-id> - Events:
event/<organization-id>/<device-id>(QoS 1) - Commands:
command/<organization-id>/<device-id>/req/#(subscription)