Added mDNS Daemon which will resolve hal.local domain

This commit is contained in:
Ziver Koc 2021-08-24 01:24:49 +02:00
parent 68c7755e7e
commit 291c4cb42a
11 changed files with 46 additions and 16 deletions

View file

@ -67,7 +67,4 @@ public class SmartHomeDaemon implements HalDaemon {
HalServer.registerExternalPage(ENDPOINT_SMARTHOME, new SmartHomePage(smartHome));
}
}
@Override
public void run() { }
}

View file

@ -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.");

View file

@ -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

View file

@ -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();