diff --git a/libraries/ATT_IOT/NW_WatchDog.cpp b/libraries/ATT_IOT/NW_WatchDog.cpp index 992bee7..93870d5 100644 --- a/libraries/ATT_IOT/NW_WatchDog.cpp +++ b/libraries/ATT_IOT/NW_WatchDog.cpp @@ -30,10 +30,10 @@ NW_WatchDog::NW_WatchDog(PubSubClient& mqttclient, const char* deviceId, const c _frequency = frequency; } -void NW_WatchDog::Setup(ATTDevice& device) -{ - device.AddAsset(WATCHDOG_ID, "network watchdog", "used to verify the connectivity with the broker", true, "integer"); -} +//void NW_WatchDog::Setup(ATTDevice& device) +//{ +// device.AddAsset(WATCHDOG_ID, "network watchdog", "used to verify the connectivity with the broker", true, "integer"); +//} bool NW_WatchDog::IsWatchDog(int pinNr, String& value) diff --git a/libraries/ATT_IOT/NW_WatchDog.h b/libraries/ATT_IOT/NW_WatchDog.h index 07bec68..fb3fc02 100644 --- a/libraries/ATT_IOT/NW_WatchDog.h +++ b/libraries/ATT_IOT/NW_WatchDog.h @@ -35,7 +35,7 @@ class NW_WatchDog NW_WatchDog(PubSubClient& mqttclient, const char* deviceId, const char* clientId, unsigned int frequency = 300000); - void Setup(ATTDevice& device); + //void Setup(ATTDevice& device); //send a ping to the broker void Ping(); diff --git a/libraries/ATT_IOT/examples/watchdog/watchdog.ino b/libraries/ATT_IOT/examples/watchdog/watchdog.ino index 0cbecf1..c4bcd4a 100644 --- a/libraries/ATT_IOT/examples/watchdog/watchdog.ino +++ b/libraries/ATT_IOT/examples/watchdog/watchdog.ino @@ -59,7 +59,6 @@ void setup() while(!Device.Connect(ðClient, httpServer)) // connect the device with the IOT platform. Serial.println("retrying"); Device.AddAsset(ledPin, "led", "light emitting diode", true, "boolean"); - WatchDog.Setup(Device); //create the required assets for the watchdog while(!Device.Subscribe(pubSub)) // make certain that we can receive message from the iot platform (activate mqtt) Serial.println("retrying"); WatchDog.Ping(); //send the first ping to initiate the process.