getConnectedDevice method

Device? getConnectedDevice(
  1. String endpointId
)

Return Device with endpointId

Implementation

Device? getConnectedDevice(String endpointId) {
  Device? device = _findDevice(connectedDevices, endpointId);
  if (device == null) {
    logger.e("Could not find device $endpointId");
    return null;
  }

  return device;
}