Francis Mariano
07/15/2021, 5:17 PMscope.peripheral should be canceled after receiving a disconnect state?travis
07/16/2021, 2:33 AMscope. You should cancel it when you no longer need the scope and any of the peripherals created from it.travis
07/16/2021, 2:36 AMscope makes sense. Although if you plan to later reconnect, then you can leave the scope active.travis
07/16/2021, 2:42 AMBluetoothDevice (which according to Android docs is just a thin representation of a MAC address). Aside from that, peripheral just listens to a broadcast receiver to monitor Bluetooth state. So basically, fine to have a bunch of active peripherals sitting around.travis
07/16/2021, 3:06 AMscope and later using a new scope and creating new peripherals is also fine.Francis Mariano
07/16/2021, 6:13 PM