can ibeacon and gatt protocal exist the same time?
Posted: Fri Feb 02, 2018 5:27 am
by guannanw
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?
Re: can ibeacon and gatt protocal exist the same time?
Posted: Fri Feb 02, 2018 7:32 pm
by chegewara
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.