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:
+12
-1
@@ -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}\"")
|
||||
|
||||
Reference in New Issue
Block a user