I’m working out of “Learning ESP32 with Arduino IDE”, Module 8, Unit 4, ESP-NOW Many-to-One.
I can’t seem to get anything to work on this project. I’m using three senders and one receiver. I’ve gone over everything about three times and still no luck. I’ve adder the MAC address of the receiver board to the senders sketches and incremented the board numbers in the sender sketches, line 61, by one on the second and third board. Was this correct? Were there any other changes to the sketches that needed to be made?
I was able to connect all four esp32 boards up to one computer usb extender and monitor all four esp32s.
This is what I got from the serial monitor of the receiver board:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13220
ho 0 tail 12 room 4
load:0x40080400,len:3028
entry 0x400805e
And this is what I got from the sender boards:
Error sending the data
Error sending the data
Error sending the data
Error sending the data
Where could I have made my errors? And also, how does one know that all the boards are connected? Could you please help?
Gayland
Hi.
How are you writing the receiver’s MAC address on the code?
Can you show me the line of code with the receiver’s MAC address? Maybe you’re not writing it in the right syntax…
Regards,
Sara
Hi.
I’m sorry, I just noticed that after some updates, we forgot to update that sketch.
Cut this line from the setup()
esp_now_peer_info_t peerInfo;
And past it before the loop() and before the setup().
The code is already updated on this link: https://raw.githubusercontent.com/RuiSantosdotme/ESP32-Course/master/code/ESP_NOW/Unit_4/ESP_NOW_Sender/ESP_NOW_Sender.ino
I’m sorry for the inconvinience.
Regards,
Sara
Sara,
Everything now seems to work. Thank you for getting back to me in a timely manner.
It was that line. I used the sketch from the link in the latest edition of the book but it must not have been updated.
Thanks again and you do very good work.
Gayland
PS:The temperature measuring system that you helped me with 3 or 4 years ago is still working and I can read it from anywhere.
Hi.
You’re right, it was not updated in the eBook yet.
Please note that you might have the same issue with the other ESP-NOW examples. You just need to do the same change as you did in this example.
That’s great. I’m glad to hear that. It seems it’s a robust system.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara