After installing the MQTT server on BeagleBone
Mqtt with Beaglebone and ESP8266-Mosquitto installation on Beaglebone
let us set the MQTT nodes on ESP8266.
As first operation we must generate the nodemcu firmware, as described in the previous article
with at least the following parameters activated in user_module.h file
- DHT
- file
- GPIO
- MQTT
- net
- node
- timer
- UART
- WiFi
These settings are the default in the user_module.h file.
At present the latest version 2.0 of nomemcu firmware was released. Here are the compiled files for this version of the firmware
As already described in previous articles and from the nodecmu link on flashing
we have to set the correct parameters for the esp8266 model.
In our case, with 4MB flash, we used the parameters shown in the image to load the firmware on the device with nodemcu-flasher tool. You can also use other tools for loading the firmware. In our case, the settings used are as follows
In the next article we’ll treat the ESP8266 node that detects temperature and humidity
MQTT with BeagleBone and ESP8266 – MQTT on ESP8266 with temperature sensor