How to edit data in esp-now example code

lalitahuja33
Posts: 16
Joined: Wed Jul 22, 2020 1:03 pm

How to edit data in esp-now example code

Postby lalitahuja33 » Thu Oct 29, 2020 12:28 pm

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.

boarchuz
Posts: 559
Joined: Tue Aug 21, 2018 5:28 am

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

Postby boarchuz » Thu Oct 29, 2020 1:04 pm

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

lalitahuja33
Posts: 16
Joined: Wed Jul 22, 2020 1:03 pm

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

Postby lalitahuja33 » Fri Oct 30, 2020 4:26 am

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.

Who is online

Users browsing this forum: No registered users and 123 guests