mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-03 20:33:31 +00:00
.
This commit is contained in:
@@ -12,13 +12,13 @@ typedef struct {
|
|||||||
uint8_t motor2_rpm_pcm;
|
uint8_t motor2_rpm_pcm;
|
||||||
uint8_t motor3_rpm_pcm;
|
uint8_t motor3_rpm_pcm;
|
||||||
uint8_t motor4_rpm_pcm;
|
uint8_t motor4_rpm_pcm;
|
||||||
} __attribute__((packed)) sensors_data_t;
|
} __attribute__((packed)) data_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int len; // Length of ESPNOW data to be sent, unit: byte.
|
int len; // Length of ESPNOW data to be sent, unit: byte.
|
||||||
uint8_t *buffer; // Buffer; pointer to the data struct.
|
uint8_t *buffer; // Buffer; pointer to the data struct.
|
||||||
uint8_t dest_mac[ESP_NOW_ETH_ALEN]; // MAC address of destination device.
|
uint8_t dest_mac[ESP_NOW_ETH_ALEN]; // MAC address of destination device.
|
||||||
} espnow_data_packet_t;
|
} espnow_data_encapsulation_t;
|
||||||
|
|
||||||
/* WiFi should start before using ESPNOW */
|
/* WiFi should start before using ESPNOW */
|
||||||
static void wifi_init(void)
|
static void wifi_init(void)
|
||||||
|
Reference in New Issue
Block a user