Page 1 of 1

How to edit data in esp-now example code

Posted: Thu Oct 29, 2020 12:28 pm
by lalitahuja33
I'm using esp now example from esp idf
https://github.com/espressif/esp-idf/bl ... ple_main.c

I'm not able to find/edit the data which is being sent when the broadcast starts. I know that the esp_now_send is the api that sends data but where do I edit it from?
And if anyone can explain me the code flow that will be highly helpful. Thesp idf documentation is very hard to understand for a begineer like me.

Thanks in advance.

Re: How to edit data in esp-now example code

Posted: Thu Oct 29, 2020 1:04 pm
by boarchuz
Maybe this will be helpful? It doesn't have most of the features of the IDF example but should be useful as an introduction.

https://github.com/boarchuz/espnow_basic_example

Re: How to edit data in esp-now example code

Posted: Fri Oct 30, 2020 4:26 am
by lalitahuja33
Hey, @boarchuz. Thanks for the link. But I'm still not able to find the parameter which is sending data. I know esp_now_send is sending data and the buffer variable is being sent but whenever I assign value to this varibale ESP32 starts reseting. Can please explain which function or variable needs to be edited.