Bridge between ESPNOW and MQTT.
Basically combining the following two projects:
trying to get it running on the QCA9533 found in those $5 repeaters:
It's made for the OpenWrt build here: https://github.com/biemster/QCA953X_OpenWrt, but it should compile/run basically on any Linux if you replace the toolchain in the Makefile.
If you go with the repeater you should extract the toolchain that is built by the QCA953x_OpenWrt
repo code, and more importantly disable BPF JIT in the resulting firmware:
- Login to the shell of the repeater
echo 0 > /proc/sys/net/core/bpf_jit_enable
This is due to this bug in the kernel: openwrt/openwrt#7044
There are some (micro)python scripts present as well to help with debugging:
- The
micropython
folder contains 2 MicroPython scripts that should be run on an ESP32 with a very recent version of MicroPython on it (v1.20 which is the latest as of this writing does not include theespnow
package, so take a nightly build). - The
mqtt_test.py
script simply connects to the MQTT broker you specify and subscribes to theespnow
topic.