How espressif/esp-now works
ESP-NOW is an embedded wireless component for one-to-many and many-to-many device communication, control, configuration, firmware upgrades, and debugging. A typical workflow starts with devices communicating over ESP-NOW, then uses domain services such as provisioning, control, security, or OTA to deliver a result. The graph preserves these documented capabilities and the principal implementation areas. Some links between services and transport are dashed: the excerpts and source index show references, but do not establish the exact runtime calls.
Main entry points: espnow.h Transport API · cmd_espnow.c Wireless debug commands · espnow_ctrl.c Device control · espnow_time.c Time synchronization
Components 24
Wireless transport
- Transport API
src/espnow/include/espnow.h - Transport runtime
src/espnow/src/espnow.c - Device groups
src/espnow/src/espnow_group.c
Device services
- Device control
src/control/src/espnow_ctrl.c - Wi-Fi provisioning
src/provisioning/src/espnow_prov.c - Security services
src/security/src/espnow_security.c - Security initiator
src/security/src/espnow_security_initiator.c - Security responder
src/security/src/espnow_security_responder.c - Protocomm client security
src/security/src/protocomm/security/client_security1.c - OTA initiator
src/ota/espnow_ota_initiator.c - OTA responder
src/ota/espnow_ota_responder.c
Debugging
- Wireless debug commands
src/debug/src/commands/cmd_espnow.c - Throughput testing
src/debug/src/commands/cmd_iperf.c - Debug console
src/debug/src/espnow_console.c - Wireless logging
src/debug/src/espnow_log.c - Flash log storage
src/debug/src/espnow_log_flash.c - SD-card support
src/debug/src/sdcard/sdcard.c - Packet capture
src/debug/src/commands/pcap/pcap.c
Utilities and time
- Time synchronization
src/time/src/espnow_time.c - SNTP helpers
src/utils/src/espnow_timesync.c - Persistent storage
src/utils/src/espnow_storage.c - Memory utilities
src/utils/src/espnow_mem.c - System utilities
src/utils/src/espnow_utils.c
Other components
- ESP-NOW devices
Connections 25
- ESP-NOW devices → Transport API: communicate over
- Transport runtime → Transport API: implements
src/espnow/src/espnow.c - Device groups → Transport API: uses
src/espnow/src/espnow_group.c - Device control → Transport API: uses
src/control/src/espnow_ctrl.c - Wi-Fi provisioning → Transport API: uses
src/provisioning/src/espnow_prov.c - Security services → Transport API: uses
src/security/src/espnow_security.c - Security initiator → Transport API: uses
src/security/src/espnow_security_initiator.c - Security responder → Transport API: uses
src/security/src/espnow_security_responder.c - Protocomm client security → Security services: supports
- OTA initiator → Transport API: uses
src/ota/espnow_ota_initiator.c - OTA responder → Transport API: uses
src/ota/espnow_ota_responder.c - Time synchronization → Transport API: uses
src/time/src/espnow_time.c - Time synchronization → SNTP helpers: uses
- Device control → Persistent storage: uses
- Wireless debug commands → Device control: sends control
src/debug/src/commands/cmd_espnow.c - Wireless debug commands → Wi-Fi provisioning: starts provisioning
- Wireless debug commands → OTA initiator: supports upgrades
- Wireless debug commands → Security initiator: supports security
- Wireless debug commands → Transport API: uses
src/debug/src/commands/cmd_espnow.c - Throughput testing → Transport API: uses
src/debug/src/commands/cmd_iperf.c - Debug console → Transport API: uses
src/debug/src/espnow_console.c - Wireless logging → Transport API: uses
src/debug/src/espnow_log.c - Flash log storage → Persistent storage: uses
- SD-card support → System utilities: uses
- Packet capture → System utilities: uses