dispose method
override
Closes the connection to the device.
Implementation
@override
Future<void> dispose() async {
logger.info("Shutting down...");
await onDisconnect();
isReady = false;
await firmware.dispose();
await imu.dispose();
await gps.dispose();
await server.dispose();
logger.socket = null;
logger.info("Subsystems disposed");
}