Search found 17 matches

by senudajayalath
Wed Mar 02, 2022 8:47 am
Forum: General Discussion
Topic: ESP32 Bluetooth SPP with bidirectional communication (send and receive)
Replies: 22
Views: 61151

Re: ESP32 Bluetooth SPP with bidirectional communication (send and receive)

You just have to combine receiving and sending, like in this simple example based on example_spp_acceptor_demo.c I have a few questions on this. Where can I find this `example_spp_acceptor_demo.c` file. The other question is if I pasted the code you have given to the `main.c` file of `BT_SPP_ACCEPT...
by senudajayalath
Sun Dec 26, 2021 9:59 am
Forum: ESP-IDF
Topic: ***ERROR*** A stack overflow in task main has been detected.
Replies: 4
Views: 28126

Re: ***ERROR*** A stack overflow in task main has been detected.

chegewara wrote:
Sun Dec 26, 2021 6:18 am

Code: Select all

uint32_t payload[0]; //Real payload of ESPNOW data.
Thank you very much. That solved the problem
by senudajayalath
Sun Dec 26, 2021 4:43 am
Forum: ESP-IDF
Topic: ***ERROR*** A stack overflow in task main has been detected.
Replies: 4
Views: 28126

Re: ***ERROR*** A stack overflow in task main has been detected.

ESP_Sprite wrote:
Sun Dec 26, 2021 2:57 am
it's the 'main' task stack that is the problem. You can adjust the stack it gets in menuconfig.
Where can I find the menuconfig in my project. There doesn't seem to be any menuconfig file in the project. And how can I adjust the stack it gets. Can you please explain that as well. Thank you.
by senudajayalath
Sat Dec 25, 2021 4:48 pm
Forum: ESP-IDF
Topic: ***ERROR*** A stack overflow in task main has been detected.
Replies: 4
Views: 28126

***ERROR*** A stack overflow in task main has been detected.

I am trying to send data through espnow. This is my code /* ESPNOW Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY...
by senudajayalath
Sat Oct 30, 2021 9:53 am
Forum: ESP-IDF
Topic: Problems with converting espnow code to C++
Replies: 6
Views: 5177

Re: Problems with converting espnow code to C++

I reworked on the main.cpp. I have attached the modified file below. But it still gives the same error of ,

"espnow_example: Send error".

Any other tip? Much appreciated.
by senudajayalath
Fri Oct 29, 2021 11:14 am
Forum: ESP-IDF
Topic: Problems with converting espnow code to C++
Replies: 6
Views: 5177

Re: Problems with converting espnow code to C++

boarchuz wrote:
Fri Oct 29, 2021 5:00 am
senudajayalath wrote:
Fri Oct 29, 2021 4:21 am

Code: Select all

  ESP_LOGI(TAG, "MAC : %d", esp_now_send(send_param->dest_mac, send_param->buffer, send_param->len));
This just prints, I (5887) espnow_example: MAC : 12396. So I'm assuming there is an error whencalling esp_now-send because ideally this should return 0
Likely culprit here
by senudajayalath
Fri Oct 29, 2021 11:08 am
Forum: ESP-IDF
Topic: Problems with converting espnow code to C++
Replies: 6
Views: 5177

Re: Problems with converting espnow code to C++

ESP_Sprite wrote:
Fri Oct 29, 2021 4:48 am
Not without seeing a. the error code, and b, the rest of the code.
I have attached the whole code and also updated my question with the error. Please take a look. Thanks
by senudajayalath
Fri Oct 29, 2021 4:21 am
Forum: ESP-IDF
Topic: Problems with converting espnow code to C++
Replies: 6
Views: 5177

Problems with converting espnow code to C++

I have compiled and run the example code which written in C and it works perfectly. But now I want to integrate that example(Written in C) to my main code which is in C++. I made couple of changes where I replaced malloc keyword with new keyword and I compiled it. It compiles successfully but when ...
by senudajayalath
Mon Sep 27, 2021 11:51 am
Forum: ESP-IDF
Topic: Peer to peer BLE mesh network where each node can send messages, relay messages and listen for messages
Replies: 5
Views: 4740

Re: Peer to peer BLE mesh network where each node can send messages, relay messages and listen for messages

Hi,

My requirement is for all the nodes able to send and receive. All the nodes should be equal. Not one node a serer and the other a client. How to accomplish this?

Using on/off example won't solve that according to my knowledge. Correct me if I'm wrong

Thanks
by senudajayalath
Mon Sep 27, 2021 6:27 am
Forum: ESP-IDF
Topic: Peer to peer BLE mesh network where each node can send messages, relay messages and listen for messages
Replies: 5
Views: 4740

Re: Peer to peer BLE mesh network where each node can send messages, relay messages and listen for messages

So when I create a group what model should I use in each node? . Do you actually need a model for this ?

Is there any example I can follow?

Thanks a lot!!