Sending data in ESP-IDF SPP GATT CLIENT/SERVER demo

thoraz
Posts: 3
Joined: Tue Jan 28, 2020 4:02 pm

Sending data in ESP-IDF SPP GATT CLIENT/SERVER demo

Postby thoraz » Wed Feb 12, 2020 9:51 am

I'm tying to understand how to send data from server to client in the SPP GATT example ( https://github.com/espressif/esp-idf/bl ... /README.md ).

I didn't get how to put into practice the following statement:
Sending Data Wirelessly
The client will be sending WriteNoRsp packets to the server. The server side sends data through notifications. When the Uart receives data, the Uart task places it in the buffer. If the size of the data is larger than (MTU size - 3), the data will be split into packets and send in turn.
Because, for receiving data in the server I have the

Code: Select all

ESP_GATTS_WRITE_EVT
which is triggered when I receive data and I can take them from

Code: Select all

p_data->write.value
. Now if I want to send data to client, how can I do that?

Who is online

Users browsing this forum: MSN [Bot] and 18 guests