1.0.7 • Published 4 years ago

@euricom/iothub-listener v1.0.7

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

Azure IoT Hub Listener

IoTHubListener is a simple tool to log any incoming device event from the Azure IotHub.

Install

First make sure you have installed the latest LTS version (or higher) of node.js

From NPM for use as a command line app:

npm install @euricom/iothub-listener -g

Command line usage

Usage

iothub-listener <cstr> [options]

Command and options

# print usage
$ iothub-listener --help
iothub-listener <cstr> [options]

Listen to Azure IoT Hub device events.

Positionals:
  cstr  Azure IoTHub connection string         [string]

Options:
  --help         Show help                     [boolean]
  --version      Show version number           [boolean]
  --verbose, -v  More verbose logging          [boolean]

# print version number
$ iothub-listener --version
1.0.5

# start listening
$ iothub-listener "HostName=yourname.azure-devices.net;Shar...."
Listening to Azure IoTHub events... (ctrl-c to quit)
Event from 'ValueSensorHub':  { id: 123, value: 12.0 } 

# start listening in verbose
$ iothub-listener "HostName=yourname.azu...." --verbose
Listening to Azure IoTHub events... (ctrl-c to quit)
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago