Multiple Advertising Service UUIDs possible?

Hi all,

Just wondering if it is possible to create multiple advertised service UUIDs in the 101 BLE?

I gave it a try but no luck.

For example, if I do the following:

blePeripheral.setAdvertisedServiceUuid(Service_1.uuid());
blePeripheral.setAdvertisedServiceUuid(Service_2.uuid());

The advertised service UUID showing up in Lightblue will be the one of "Service_2" only.

So basically "line 1" is overwritten by "line 2".

Any thoughts?

Thanks

Hi @czk9527,

Excellent question!

At this time only a single service can be advertised. So the last call to setAdvertisedServiceUuid is the one that sticks.

Keep in mind you don't have to advertise every service your peripheral contains.

sandeepmistry:
Hi @czk9527,

Excellent question!

At this time only a single service can be advertised. So the last call to setAdvertisedServiceUuid is the one that sticks.

Keep in mind you don't have to advertise every service your peripheral contains.

Thank you