diff --git a/content/hardware/03.nano/boards/nano-esp32/tutorials/esp-now/esp-now.md b/content/hardware/03.nano/boards/nano-esp32/tutorials/esp-now/esp-now.md index d9b6b3ba51..c8ff9dc01e 100644 --- a/content/hardware/03.nano/boards/nano-esp32/tutorials/esp-now/esp-now.md +++ b/content/hardware/03.nano/boards/nano-esp32/tutorials/esp-now/esp-now.md @@ -235,7 +235,7 @@ typedef struct struct_message { struct_message myData; // callback function that will be executed when data is received -void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) { +void OnDataRecv(const esp_now_recv_info_t *info, const uint8_t *incomingData, int len) { memcpy(&myData, incomingData, sizeof(myData)); Serial.print("Bytes received: "); Serial.println(len); @@ -281,4 +281,4 @@ You can also read more about the `esp_now` library over at [https://docs.espress ## Summary In this article we covered the basics of the ESP-NOW protocol and how it works. We also provided example code serving as a starting point for your project. Overall, ESP-NOW is a powerful communication protocol for local and low-latency applications, particularly when using ESP8266 and ESP32 microcontrollers. -However, it comes with certain limitations that you should be aware of when designing projects. \ No newline at end of file +However, it comes with certain limitations that you should be aware of when designing projects.