# espnow-simple_hacky_receiver.py -- show ESPnow working broadcast on CircuitPython # 9 Jul 2025 - @todbot # tested on QTPY ESP32-S2 and FunHouse (ESP32-S2) import time import wifi import espnow # https://github.com/adafruit/circuitpython/issues/9380#issuecomment-2463013607 # hack to switch channel that is used for ESPNow # this takes just a few milliseconds, so doesn't waste a lot of power wifi.radio.start_ap(" ", "", channel=6, max_connections=0) wifi.radio.stop_ap() e = espnow.ESPNow() while True: time.sleep(0.3) print("loop") if not e: # returns True if packet continue packet = e.read() print("packet:", packet.msg, packet)