close method

  1. @override
void close()
override

Closes the session with the device and releases it back to the available pool should it reconnect.

Implementation

@override
void close() {
  sendCommand(ReleaseDeviceCommand(deviceId: device.id)).catchError(
    (e, stack) => logger.info('[CLOSE]: Error sending close command'),
  );

  super.close();
}