Hi all, Is it possible to hide a Service during advertising? And show it after the connection?
If yes, how?
My configuration:
- nrf52832 microcontroller
- Softdevice S132 V4.0.2
- Nordic SDK 13.0
Thanks
Hi all, Is it possible to hide a Service during advertising? And show it after the connection?
If yes, how?
My configuration:
Thanks
Yes - don't put it in the advertising packet as an advertised service. You'll then only discover it after connection
Many thanks! Could you provide me an example of doing it? Is it possible to add or remove services during connection?
To add or remove services from the GATT database, you need to restart the SoftDevice, so you can not do this during a connection. You can, however, change what characteristics can be read/written during a connection by using Authorization.
and none of that was what he asked. He asked if he could hide a service during advertising, which you can by .. err .. not advertising it and have it discovered at connection which you do by having the service. No need to add or remove things, or use authorization or in fact do anything at all. Just choose the UUIDs you put in the ad packet. Done.
It's clear! Many thanks!