resetDevice method
- Device device
Resets the given device by sending RoverStatus.RESTART.
Implementation
void resetDevice(Device device) {
models.home.clear(clearErrors: true);
final socket = switch (device) {
Device.SUBSYSTEMS => models.sockets.data,
Device.AUTONOMY => models.sockets.autonomy,
Device.VIDEO => models.sockets.video,
_ => null,
};
deviceSeverity[device] = BurtLogLevel.info;
final message = UpdateSetting(status: RoverStatus.RESTART);
socket?.sendMessage(message);
notifyListeners();
}