Is it possible to host a passive GATT Service "i.e one that does not advertises itself" , but can entertain connections.
Posted: Fri Jul 19, 2019 6:30 pm
I was having an idea about an ESP32 hosted GATT Service that did not advertise itself (I think it might save power! I have an Application Level Understanding of the BLE Protocol not in depth ! so peace) , I did observe the Bluez Stack behavior when I host a GATT Service it advertises, but once someone has connected to it, it stops advertising but maintains the connection(I know the BLE protocol only allows one device to be connected at a time except for MESH ) , My idea has stemmed from this observation , if advertising consumes power(No matter even if minimal) and in a closed loop project like mine , where I know both the Peripheral and Master device and trust them , Advertising in such an environment is purely optional and once connected advertising stops anyway , so "Can I skip advertisement on my ESP32 BLE server and let my phone directly connect to it."
I tried using neils (Mr Kolban) BLE Server example and conveniently commented out the advertising line , but I could not connect it on my phone.
Any alternative or am I missing something(Not the BLE SIG Documentation Please ) , or this is simply not possible? , or has security issues ?(There might be many ) , Or is there a better option then BLE ??
Please comment and let me know ..
I tried using neils (Mr Kolban) BLE Server example and conveniently commented out the advertising line , but I could not connect it on my phone.
Any alternative or am I missing something(Not the BLE SIG Documentation Please ) , or this is simply not possible? , or has security issues ?(There might be many ) , Or is there a better option then BLE ??
Please comment and let me know ..