Comments on: Getting Started with ESP-NOW (ESP32 with Arduino IDE) https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 25 Apr 2025 22:10:06 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: Jack Rowe https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1030845 Fri, 25 Apr 2025 22:10:06 +0000 https://randomnerdtutorials.com/?p=92668#comment-1030845 In reply to Sara Santos.

You also need to fix the receive callback declaration and definition as suggested by John doe below in his comment of March 14, 2025 at 3:40 pm. The new incoming data where mac used to be is now a struct that has incoming mac, receiver mac and another val I don’t understand yet.

]]>
By: Jack Rowe https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1030844 Fri, 25 Apr 2025 22:03:04 +0000 https://randomnerdtutorials.com/?p=92668#comment-1030844 In reply to Clive.

You need to change the onReceive function as suggested by John doe in the comment after yours posted March 14, 2025 at 3:40 pm.

]]>
By: Jack Rowe https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1030843 Fri, 25 Apr 2025 22:00:56 +0000 https://randomnerdtutorials.com/?p=92668#comment-1030843 In reply to John doe.

Then use info->src_addr to refer to the sender’s mac if needed. It took me a really embarrassing amount of time to “fix” that update.

]]>
By: Jack Rowe https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1030838 Fri, 25 Apr 2025 21:27:37 +0000 https://randomnerdtutorials.com/?p=92668#comment-1030838 In reply to kimmusu.

Your computer needs multiple available usb ports, of course. Then hook each chip up one at a time to an available port and look through the list in Tools->Port to find a port that shows output of your Serial.print statements on your Serial monitor. As you hook up more chips, under Tools->Port you’ll find new ports appearing. Set new chip to that port and check again that the correct Serial.print output statements are appearing in your Serial monitor. You can run at least 6 chips this way using Arduino IDE, I haven’t tried more.

]]>
By: Jack Rowe https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1030807 Fri, 25 Apr 2025 19:37:00 +0000 https://randomnerdtutorials.com/?p=92668#comment-1030807 In reply to Sara Santos.

If sending to an explicit mac address, an ack is in fact returned from receiver. If using broadcast address, no ack is returned. Thus broadcast is slightly faster but less certain. I don’t know what happens when sending to NULL (i.e. sends to all peers registered using esp_now_add_peer()).

]]>
By: Jack Rowe https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1030805 Fri, 25 Apr 2025 19:32:05 +0000 https://randomnerdtutorials.com/?p=92668#comment-1030805 In reply to Friedhelm.

@Friedhelm, possibly you are using sscanf() instead of strtok(). The former will stop at spaces, so will only read any char string until the first space, ignoring the rest of the string. strtok() will read until the next token (e.g. a comma if a comma-separated list of variables). Can you see the initial part of the string that comes before the first space?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1028928 Sat, 19 Apr 2025 21:24:01 +0000 https://randomnerdtutorials.com/?p=92668#comment-1028928 In reply to Ken Brown.

Hi.
I’m sorry. But I’m not sure what can be the problem…
I’m not sure if it is related to some ESP32 specific model …

I’ve always used the same ESP32 model.

Regards,
Sara

]]>
By: Ken Brown https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1028286 Thu, 17 Apr 2025 19:14:34 +0000 https://randomnerdtutorials.com/?p=92668#comment-1028286 In reply to Sara Santos.

Hello Sara,
I have two different boards.
One is:- Chip is ESP32-C3 (QFN32) (revision v0.4)
The other is:- Chip is ESP32-D0WD-V3 (revision v3.1)
I want to send data from the first to the second, but get exactly the problem shown by Nils, yes, I know, 5 years ago!
Then I had an inspiration. Why not try the other way round?
It works perfectly from the D0WD to the C3, but not from the C3 to the D0WD.
I have repeated the experiment, retyping the MAC address a couple of times, but the result is the same.
Any ideas?

]]>
By: Ken Brown https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1028213 Thu, 17 Apr 2025 13:51:04 +0000 https://randomnerdtutorials.com/?p=92668#comment-1028213 In reply to Sara Santos.

I have the same problem as Nils (above). That eliminates the suggestions above. Any other ideas why we get this problem?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp-now-esp32-arduino-ide/#comment-1028098 Thu, 17 Apr 2025 09:12:45 +0000 https://randomnerdtutorials.com/?p=92668#comment-1028098 In reply to Ken Brown.

Yes.
That’s right.
Regards,
Sara

]]>