Passive Read
Cordova ==> Bluetooth module
Some Bluetooth peripherals support passive reading (collecting readings without the app in the foreground). For information on permissions setup and other requirements, please review the iOS and Android native documentation.
To start passively listening to certain peripherals, pass an array of peripheralIDs
to ValidicMobile.InformBluetooth.setPassiveReadPeripheralIDs()
:
await ValidicMobile.InformBluetooth.setPassiveReadPeripheralIDs({
peripheralIDs: [18]
});
To stop passively listening, pass an empty array:
await ValidicMobile.InformBluetooth.setPassiveReadPeripheralIDs({
peripheralIDs: [],
});
Special Considerations
Special Considerations
Please review the native Android and native iOS documentation for details on special considerations for specific peripherals.
Updated about 1 month ago