binaries - mqttjs/MQTT.js GitHub Wiki
This project also contains two extremely simple MQTT clients bin/mqtt_pub
and bin/mqtt_sub
can be executed from the command line in the following ways:
mqtt_pub <port> <host> <topic> <payload>
mqtt_sub <port> <host> <topic>
where
-
port
is the port the MQTT server is listening on -
host
is the MQTT server's host -
topic
is the topic to publish/subscribe to -
payload
is the payload to publish
These are expected to improve as the project goes on.