Check this out... ESP-NOW (communication protocol)

I think it might be possible to construct a ESP32-NOW Gateway...
[ESP-NOW Nodes] ---> [ESP32-S2 Gateway] ---> [MQTT Broker] ---> Node-RED

Possible experiment for the weekend.

2 Likes

Dave, this has been around for some time -

See also Super Simple ESPNow to Wi-Fi / MQTT Gateway : 7 Steps - Instructables

1 Like

esp-now is nice, except for one downside (to me) - a message is limited to 250 bytes, which should be sufficient for many applications but it takes away some flexibility.

Couldn't wait until the weekend - had to have a play.
I've managed to create, using Micro-Python, a script for a 'now_sender' and a 'now_gateway'.
Note: You will need to change the suffix from .txt to .py as the Forum doesn't allow Python files.

now_gateway.txt (2.0 KB)
now_sender_v1.txt (1.4 KB)

The scripts will auto-discover the MAC addresses needed for communication.
Just need to make sure the sender is on the same WiFi channel as the Gateway to MQTT.