Add ESP-NOW master/slave discovery on DIP network channel.

Initialize WiFi and ESP-NOW from shared app config; master broadcasts
discover packets and collects slave info, slaves respond on matching
network while UART commands stay master-only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-18 22:16:19 +02:00
co-authored by Cursor
parent bde4c473ef
commit 54f2a7de5b
5 changed files with 358 additions and 22 deletions
+12 -1
View File
@@ -15,12 +15,23 @@ idf_component_register(
"uart_proto.c"
"cmd_handler.c"
"cmd_version.c"
"esp_now_comm.c"
"proto/uart_messages.pb.c"
"proto/pb_encode.c"
"proto/pb_common.c"
INCLUDE_DIRS
"."
"proto")
"proto"
REQUIRES
esp_wifi
esp_netif
esp_event
nvs_flash
PRIV_REQUIRES
esp_driver_gpio
esp_driver_uart
esp_driver_i2c
app_update)
target_compile_definitions(${COMPONENT_LIB}
PRIVATE "POWERPOD_GIT_HASH=\"${POWERPOD_GIT_HASH}\"")