onConnect method

  1. @override
Future<DeviceStatus> onConnect()
override

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;