Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gpbenton/espnow-mqtt
Sends messages from ESPNow to MQTT
https://github.com/gpbenton/espnow-mqtt
esp32 esp8266 espnow mqtt mqtt-client platformio
Last synced: about 1 month ago
JSON representation
Sends messages from ESPNow to MQTT
- Host: GitHub
- URL: https://github.com/gpbenton/espnow-mqtt
- Owner: gpbenton
- License: mit
- Created: 2024-04-29T17:45:00.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-20T09:03:44.000Z (8 months ago)
- Last Synced: 2024-05-21T00:00:34.397Z (8 months ago)
- Topics: esp32, esp8266, espnow, mqtt, mqtt-client, platformio
- Language: C++
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.MIT
Awesome Lists containing this project
README
Sends messages from ESPNow to MQTT.
A powered gateway is defined that receives ESPNow messages and forwards them to the MQTT Broker. ESPNow is configured to use the same WiFi channel as the configured SSID, so the gateway can interoperate with them. On powerup, and after failed message sending, the sensors scan the wifi signals to find the correct channel, and then do an ESPNow broadcast to find the gateway.
MQTT Topic is `espnow/{mac_address_of_sensor_node} `
MQTT# Status
Alpha - basic principle works with `wemos_d1_mini` gateway and `lolin s2 mini` sensor.## TODO:
- [ ] Battery level detection - use esp32 get vdd? Is there an internal voltage reference for analog io? Turn on voltage divider with transistor.
- [ ] Send JSON message over ESPNow? Simpler for gateway and more flexible, but increases the size of the ESPNow message.
- [ ] Light sensor.
- [ ] Two way communication.# ACKNOWLEDGEMENTS
Building on the shoulders of giants[QuickEspNow](https://github.com/gmag11/QuickESPNow)
[async-mqtt-client](https://github.com/HeMan/async-mqtt-client)
[nlohman-json](https://github.com/Johboh/nlohmann-json)