connectionState property

set connectionState (BleConnectionState state)

Implementation

set connectionState(BleConnectionState state) {
  UniversalBle.requestMtu(deviceId, 247);

  if (devState.index < DeviceState.Interrogating.index) {
    _discoverServices();
  }
  connected = (state == BleConnectionState.connected);
}