gateway-topics

0.1.1 • Public • Published

Gateway to MQTT Topics

Send the global stream gateway-data to individual MQTT topics:

device/<device type>/<device id>

For example:

device/BLEES/c098e5300099

List Topics

You can see all valid device topics by listening to:

gateway-topics

Command:

$ mosquitto_sub -h <mqtt broker ip address> -t gateway-topics

Get all data for a type of sensor

$ mosquitto_sub -h <mqtt broker ip address> -t device/<device type>/+

Usage

var GatewayTopics = require('gateway-topics');

var obj = {
	device: 'DeviceName',
	<other fields>: <other values>
};

GatewayTopics.publish(obj);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i gateway-topics

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

4.46 kB

Total Files

3

Last publish

Collaborators

  • 4908admin