Open MrCsabaToth opened 1 year ago
I/BluetoothLeAdvertiser(15672): startAdvertisingSet, calling package name = dev.steenbakker.flutter_ble_peripheral_example I/BluetoothAdapter(15672): isLeEnabled(): ON I/FlutterBlePeripheral(15672): onStartSuccess() mode: 2, txPOWER 1 I/BLE Peripheral state (15672): advertising I/BluetoothLeAdvertiser(15672): stopAdvertising is called I/BluetoothLeAdvertiser(15672): stopAdvertisingSet, calling package name = dev.steenbakker.flutter_ble_peripheral_example
it seems that as soon as I/BLE Peripheral state (15672): advertising happened, within a second: I/BluetoothLeAdvertiser(15672): stopAdvertising is called
causing, it not to show any advertisement
I experimented with the example app. Unfortunately I couldn't get it to work: the advertised service doesn't show up in any scans. I'm using a OnePlus Nord Android phone with Android 12 which supposedly supports peripheral mechanisms. The example code doesn't give me any error messages, Bluetooth is enabled and the app has permissions. I tried both the
Advertise
method and theAdvertiseSet
. I'm trying to scan the BLE peripheral with other Android phones using nRF Connect, an iPad with nRF Connect and my laptop (Linux with BlueZ).It's another issue that if I'd see that service I don't seem to find a way to actually communicate data, which kinda makes the whole experiment mute: it has no value if I cannot communicate (#85). But even the mute service does not seem to show.