can ibeacon and gatt protocal exist the same time?

guannanw
Posts: 1
Joined: Fri Feb 02, 2018 5:21 am

can ibeacon and gatt protocal exist the same time?

Postby guannanw » Fri Feb 02, 2018 5:27 am

FYI. I'm testing the ESP32 board, now i'm capable to send sensor data using gatt protocal , nonw I want to add ble_ibeacon to do the broadcasting thing, is that doable?

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

Re: can ibeacon and gatt protocal exist the same time?

Postby chegewara » Fri Feb 02, 2018 7:32 pm

Sure, its possible. All you have to do is to start advertising again when client is connected. Then you have situation:
- no clients connected, esp32 works like iBeacon just advertising
- client is connecting, esp32 stops advertising (i dont remember its handled by bluedroid or its just programmed in every example code), call start advertising, have a fun.

Who is online

Users browsing this forum: No registered users and 93 guests