ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-24 11:25:39 -05:00
parent 3803cdd30e
commit 1287d92846
2 changed files with 6 additions and 4 deletions

View File

@@ -73,6 +73,8 @@ static uint8_t s_led_state = 0;
/* ESP NOW*/
#define ESPNOW_MAXDELAY 512
static QueueHandle_t espnow_queue;
static uint8_t broadcast_mac[ESP_NOW_ETH_ALEN] = {};
static uint8_t espnow_seq[ESPNOW_DATA_MAX] = {0, 0};
static uint8_t espnow_broadcast_mac[ESP_NOW_ETH_ALEN] = {};
typedef struct struct_message {
char node[32];

View File

@@ -42,9 +42,9 @@ typedef struct {
} espnow_event_t;
enum {
EXAMPLE_ESPNOW_DATA_BROADCAST,
EXAMPLE_ESPNOW_DATA_UNICAST,
EXAMPLE_ESPNOW_DATA_MAX,
ESPNOW_DATA_BROADCAST,
ESPNOW_DATA_UNICAST,
ESPNOW_DATA_MAX,
};
#endif