mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-22 23:05:28 +00:00
ESP-NOW Transmitter
This commit is contained in:
@@ -13,6 +13,9 @@ static sensors_data_t buffer;
|
|||||||
static int x, y; // Joystick x and y positions
|
static int x, y; // Joystick x and y positions
|
||||||
adc_oneshot_unit_handle_t adc_xy_handle;
|
adc_oneshot_unit_handle_t adc_xy_handle;
|
||||||
|
|
||||||
|
static uint8_t receiver_mac[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E, 0x45}; // MAC address of Robot
|
||||||
|
|
||||||
|
|
||||||
// Function to delete peer (i.e. when communication error occurs)
|
// Function to delete peer (i.e. when communication error occurs)
|
||||||
void deleteDev (void) {
|
void deleteDev (void) {
|
||||||
uint8_t delStatus = esp_now_del_peer(receiver_mac);
|
uint8_t delStatus = esp_now_del_peer(receiver_mac);
|
||||||
|
Reference in New Issue
Block a user