Bluetooth - Peripheral send data to Central

s.allasia
Posts: 23
Joined: Tue Jan 09, 2018 3:12 pm

Bluetooth - Peripheral send data to Central

Postby s.allasia » Thu Jan 11, 2018 7:58 am

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
Last edited by s.allasia on Tue Jan 16, 2018 8:01 am, edited 1 time in total.

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: Bluetooth - Peripheral send data to Central

Postby chegewara » Fri Jan 12, 2018 3:52 am

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.

s.allasia
Posts: 23
Joined: Tue Jan 09, 2018 3:12 pm

Re: Bluetooth - Peripheral send data to Central

Postby s.allasia » Fri Jan 12, 2018 7:48 am

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!

s.allasia
Posts: 23
Joined: Tue Jan 09, 2018 3:12 pm

Re: Bluetooth - Peripheral send data to Central

Postby s.allasia » Tue Jan 16, 2018 8:00 am

Hi I solved!
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 108 guests