mergBLEScanForPeripheralsWithServices

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mergBLEScanForPeripheralsWithServices [<pUUIDs>]
Associationsmergble
Summary

Scans for peripherals that are advertising services

Introduced8.0
OSios, mac
Platformsdesktop, mobile
Parameters
NameTypeDescription
pUUIDs

(optional with "" default) An list of service UUIDs that the app is interested in. If empty all discovered peripherals are returned regardless of their supported services (not recommended).

Description

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 pUUIDs parameter. When a peripheral is discovered the mergBLE the mergBLEDidDiscoverPeripheral message is sent.

Tagsexternals