This commit is contained in:
2025-07-05 18:49:43 -04:00
parent 56db47ee89
commit 824c6827cd

View File

@@ -26,8 +26,17 @@ Sending & Ecapsulating Data
void sendData (void) {
... ... ...
... ... ...
buffer.x_axis = x_axis;
buffer.y_axis = y_axis;
// Call ESP-NOW function to send data (MAC address of receiver, pointer to the memory holding data & data length)
uint8_t result = esp_now_send((uint8_t*)receiver_mac, (uint8_t *)&buffer, sizeof(buffer));
... ... ...
... ... ...
}
Main Function