Register slaves from recv src_addr instead of protobuf mac bytes, add ESPNOW_UNICAST_TEST for path verification, restore unicast deadzone, and expose unicast-test in goTool. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
650 B
C
19 lines
650 B
C
#ifndef ESP_NOW_COMM_H
|
|
#define ESP_NOW_COMM_H
|
|
|
|
#include "app_config.h"
|
|
#include "client_registry.h"
|
|
#include "esp_err.h"
|
|
|
|
esp_err_t esp_now_comm_init(const app_config_t *config);
|
|
|
|
/** Master: unicast accel deadzone to one slave (client_id is echoed for filtering). */
|
|
esp_err_t esp_now_comm_send_accel_deadzone(const uint8_t mac[CLIENT_MAC_LEN],
|
|
uint32_t client_id, uint32_t deadzone);
|
|
|
|
/** Master: send minimal unicast test payload to verify master→slave path. */
|
|
esp_err_t esp_now_comm_send_unicast_test(const uint8_t mac[CLIENT_MAC_LEN],
|
|
uint32_t seq);
|
|
|
|
#endif
|