disconnect method
Disconnect from the device. Clears device and services from memory.
FlutterBluePlus can experience several bugs when trying to disconnect and connect again
Implementation
Future<void> disconnect() async {
await _bluetoothDevice?.disconnect();
_bluetoothDevice = null;
_services.clear();
_log.info("Disconnected from Movisens device [$id]");
}