Page 1 of 1
Bluetooth - Peripheral send data to Central
Posted: Thu Jan 11, 2018 7:58 am
by s.allasia
Hi!
How I can send data from Peripheral to Central when they are already connected?
I mean not as notify or response but as new communication.
Thanks a lot
Re: Bluetooth - Peripheral send data to Central
Posted: Fri Jan 12, 2018 3:52 am
by chegewara
If you run on your peripheral server then you have 2 options, notifications and indications. Maybe you can use broarcasting but i dont know yet how its working.
There is option you can run client on your peripheral. This require to add some additional info about prefered connection type, but in this matter all i know is just theory ive read in core bluetooth specs.
Re: Bluetooth - Peripheral send data to Central
Posted: Fri Jan 12, 2018 7:48 am
by s.allasia
Thanks you for your answer,
Do you know which API/libraries/funtions that I can use and where I can find examples for do it?
Thanks!
Re: Bluetooth - Peripheral send data to Central
Posted: Tue Jan 16, 2018 8:00 am
by s.allasia
Hi I solved!
I used "esp_ble_gatts_send_indicate" function in "esp_gatts_api.h".
Thanks.
Bye!