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
Bluetooth - Peripheral send data to Central
Bluetooth - Peripheral send data to Central
Last edited by s.allasia on Tue Jan 16, 2018 8:01 am, edited 1 time in total.
Re: Bluetooth - Peripheral send data to Central
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.
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
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!
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
Hi I solved!
I used "esp_ble_gatts_send_indicate" function in "esp_gatts_api.h".
Thanks.
Bye!
I used "esp_ble_gatts_send_indicate" function in "esp_gatts_api.h".
Thanks.
Bye!
Who is online
Users browsing this forum: No registered users and 94 guests