mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-12-12 06:12:14 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -66,6 +66,15 @@ typedef struct {
|
|||||||
uint8_t payload[2]; // Real payload of ESPNOW data.
|
uint8_t payload[2]; // Real payload of ESPNOW data.
|
||||||
} __attribute__((packed)) example_espnow_data_t;
|
} __attribute__((packed)) example_espnow_data_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint8_t type; // Broadcast or unicast ESPNOW data.
|
||||||
|
uint8_t state; // Indicate that if has received broadcast ESPNOW data or not.
|
||||||
|
uint16_t seq_num; // Sequence number of ESPNOW data.
|
||||||
|
uint16_t crc; // CRC16 value of ESPNOW data.
|
||||||
|
uint32_t magic; // Magic number which is used to determine which device to send unicast ESPNOW data.
|
||||||
|
uint8_t payload[2]; // Real payload of ESPNOW data.
|
||||||
|
} __attribute__((packed)) sensors_data_t;
|
||||||
|
|
||||||
/* Parameters of sending ESPNOW data. */
|
/* Parameters of sending ESPNOW data. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
bool unicast; // Send unicast ESPNOW data.
|
bool unicast; // Send unicast ESPNOW data.
|
||||||
|
|||||||
Reference in New Issue
Block a user