Skip to content

Sample NodeJS client for connecting to MQTT over web socket

Notifications You must be signed in to change notification settings

SenseTecnic/mqtt-websocket-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MQTT over Web Socket Example

This repo contains the sample code to connect to the STS MQTT websocket over websocket.

Install

npm install

Usage Example

node mqtt-websocket -h <MQTT_HOST> --ssl -u <FRED_USERNAME> -c <MQTT_CLIENT_ID> -p <MQTT_CLIENT_KEY> -t users/<FRED_USERNAME>/<CUSTOM_TOPIC>

Example:

node mqtt-websocket -h mqtt.sensetecnic.com --ssl -u tedh -c tedh-82883de9 -p 123123123 -t users/tedh/test

You can enter messages to the console after connecting.

About

Sample NodeJS client for connecting to MQTT over web socket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published