This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Service UUID advertised by non-connectable device

Hello,

I would like to make an iOS app read BLE advertising packets (sent by nRF51) in background mode. The nRF51 sends ADV_SCAN_IND packets and is not connectable.

iOS method scanForPeripheralsWithServices forces me to include an service UUID into the advertising packet. From documentation:

Apps that have specified the bluetooth-central background mode are allowed to scan while in the background. That said, they must explicitly scan for one or more services by specifying them in the serviceUUIDs parameter.

I've included some random 128 bit service UUID into the advertising packet to have my device scannable by the iOS app. Is that legal when the service is in fact not supported (as the device is not connectable)?

I went through Bluetooth Core Specification and CSS, but I didn't find any mention.

Thank you,

Adam

Related