onConnect method
Callback on connect. Returns the DeviceStatus of the device.
Is to be overridden in sub-classes and implement device-specific connection.
Implementation
@override
Future<DeviceStatus> onConnect() async => DeviceStatus.connected;
Callback on connect. Returns the DeviceStatus of the device.
Is to be overridden in sub-classes and implement device-specific connection.
@override
Future<DeviceStatus> onConnect() async => DeviceStatus.connected;