getConnectedDevice method
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;
}