No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
broker.js avoid to use deprecated api Nov 17, 2015
espruino_mqtt.js
package.json
publisher.js adjust to new version of MQTT.js library Nov 17, 2015
subscriber.js

README.md

Espruino MQTT Example

A sample implementation of MQTT publisher on Espruino.

Get Started Guide

requirements

  • node.js
  • npm

Get the source code and install dependencies.

git clone https://github.com/rockymanobi/espruino-mqtt-sample.git
cd espruino-mqtt-sample
npm install

Run the broker and subscriber program.

node broker.js
node subscriber.js

Connect the CC3000 WiFi module and DS18B20 Temperature to your Espruino as follows here.

Run espruino_mqtt.js on Espruino WebIDE. Then, everytime you press the BTN1, the temperature will be sent to subscriber by MQTT.