mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-23 01:40:11 +00:00
updated debugging and included new Broadlink api build
This commit is contained in:
@@ -236,7 +236,11 @@ public class BroadlinkHome implements Home {
|
||||
}
|
||||
|
||||
DatagramPacket thePacket = theDevice.sendCmdPkt(Configuration.BROADLINK_DISCONVER_TIMEOUT, thePayload);
|
||||
String returnData = DatatypeConverter.printHexBinary(thePacket.getData());
|
||||
String returnData = null;
|
||||
if(thePacket != null)
|
||||
returnData = DatatypeConverter.printHexBinary(thePacket.getData());
|
||||
else
|
||||
returnData = "No Data - null";
|
||||
log.debug("RM2 Device data return: <<<" + returnData + ">>>");
|
||||
} catch (IOException e) {
|
||||
log.error("Call to " + broadlinkCommand.getId() + " - " + _rm2 + " device failed with exception.", e);
|
||||
|
||||
@@ -198,7 +198,8 @@ public class LifxHome implements Home {
|
||||
log.debug("Home is already closed....");
|
||||
return;
|
||||
}
|
||||
client.close();
|
||||
if(client != null)
|
||||
client.close();
|
||||
closed = true;
|
||||
}
|
||||
private static class MyLightListener implements LFXLightCollectionListener {
|
||||
|
||||
Reference in New Issue
Block a user