Back to engineering archive

Record 071 / Connected systems

ESP-NOW button-state sender draft

An archived draft repeatedly sends a button level in an ESP-NOW packet and prints transmission status through a separate Serial callback.

Incomplete archived draft
ESP-NOWButton inputSerial diagnostics

Archived source flow

Selected archived paths: the main loop reads a button into a packet, calls ESP-NOW send and delays30ms. A separate asynchronous callback prints send status. Includes are incomplete and radio behaviour is untested.
Selected main-loop and callback paths from incomplete archived source. Two include targets are missing; the target platform, build and radio operation are unverified. View diagram at full size

Technical notes

Button-state packet

The loop reads a pull-up button input, places its level in packet.state, calls ESP-NOW send and delays for 30 ms. This is a button-state message, not a UART-data bridge.

Separate diagnostics

transmissionComplete() prints the send status over Serial. Setup uses Wi-Fi station mode and legacy ESP-NOW role APIs; those calls alone do not establish ESP32 compatibility.

Incomplete setup

The stored source begins with two bare include directives. Initialization failure returns from setup without gating the later loop. No repaired build or successful radio delivery is claimed.

Engineering archiveArchive record

Project enquiries

Discuss your project.

Tell us what you’re developing and where you need engineering support.

Discuss your project