Added mDNS Daemon which will resolve hal.local domain
This commit is contained in:
parent
68c7755e7e
commit
291c4cb42a
11 changed files with 46 additions and 16 deletions
|
|
@ -67,7 +67,4 @@ public class SmartHomeDaemon implements HalDaemon {
|
|||
HalServer.registerExternalPage(ENDPOINT_SMARTHOME, new SmartHomePage(smartHome));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() { }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ public class SmartHomeImpl extends SmartHomeApp implements TokenRegistrationList
|
|||
*
|
||||
* TODO: https://developers.google.com/assistant/smarthome/traits/temperaturesetting
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public SyncResponse onSync(SyncRequest syncRequest, Map<?, ?> headers) {
|
||||
logger.fine("Received sync request.");
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ import java.util.logging.Logger;
|
|||
|
||||
import static zutil.ui.UserMessageManager.*;
|
||||
|
||||
public class PCDataSynchronizationClient implements HalDaemon {
|
||||
public class PCDataSynchronizationClient implements HalDaemon, Runnable {
|
||||
private static final Logger logger = LogUtil.getLogger();
|
||||
private static final long SYNC_INTERVAL = 5 * 60 * 1000; // 5 min
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import java.util.concurrent.TimeUnit;
|
|||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class ZigbeeAttributeUpdateDaemon implements HalDaemon {
|
||||
public class ZigbeeAttributeUpdateDaemon implements HalDaemon, Runnable {
|
||||
private static final Logger logger = LogUtil.getLogger();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue