Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Stop listening for Bluetooth device discovery events.
my.onBluetoothDeviceFound()
my.offBluetoothDeviceFound();
Page({ onLoad() { my.onBluetoothDeviceFound({ success: this.handleDeviceFound }); }, handleDeviceFound(res) { console.log('Devices found:', res.devices); }, onUnload() { my.offBluetoothDeviceFound(this.handleDeviceFound); my.closeBluetoothAdapter(); } });
Page({ onUnload() { // Stop discovery my.stopBluetoothDevicesDiscovery(); // Remove listeners my.offBluetoothDeviceFound(); my.offBluetoothAdapterStateChange(); // Close adapter my.closeBluetoothAdapter(); } });