Please enter appropiate values in config.h, default platformio.ini is ESP8266 code for ESPNowMQTT
This is the code that reads ESPNow messages and transforms it to MQTT via WiFi.
Edit appropiate line in platformio.ini
src_dir = ./Arduino/ESPNowMQTT
Note: This stays continously connected to WiFi and receives ESPNow messages continously.
Very IMPORTANT: ESPNow channel must be same as WiFi channel of your home router!
This code sends ESPNow data to ESPNow server. So this can be a sensor reading.
Edit appropiate line in platformio.ini
src_dir = ./Arduino/ESPNowSender
platformio.ini is included, use PlatformIO and it will take care of installing the following libraries.
Library | Link | Platform |
---|---|---|
MQTT | https://github.com/256dpi/arduino-mqtt | ESP8266/32 |
ArduinoJson | https://github.com/bblanchon/ArduinoJson | ESP8266/32 |