-
Notifications
You must be signed in to change notification settings - Fork 1
MQTT
Wojciech Baczyński edited this page Jan 23, 2017
·
2 revisions
In order for the mqtt client on the NodeMCU to work, you need to:
-
Include the 'mqtt' package in your NodeMCU firmware
-
Execute and modify a bootstrap module provided in this project (examples/mqttclient.lua) - you need to provide network ssid and password (examples/wifi_credentials.lua) for the connection with wifi access point and the broker ip (examples/broker_ip.lua)
-
An mqtt broker needs to be launched on a device connected to the same wifi access point as the NodeMCU. For launching an MQTT broker on your laptop, you can use an open source implementation: Mosquito.