This project includes Live Objects Client code samples for the MQTT protocol.
Clone this repository from GitHub:
$ git clone https://github.com/boly38/lo-mqtt-nodejs.git
npm install
cp .env.template .env.dontpush.myEnv1
cp .env.template .env.dontpush.myEnv2
.env.dontpush.myEnv1
.env
filecp .env.dontpush.myEnv1 .env
lo-device - a mqtt client using device mode
.
This client is able to :
The client "controller" asks to the user the order via terminal and input.
Controller features:
europe
, france
, lyon
.To start the client:
node ./src/device-mode/lo-device.js
Then use h
to display help.