From a523f0abc595161e515cf9f7afc946d04cdb552a Mon Sep 17 00:00:00 2001 From: Jan Bogaerts Date: Thu, 10 Nov 2016 12:20:16 +0100 Subject: [PATCH] watchdog don't show asset --- libraries/ATT_IOT/NW_WatchDog.cpp | 8 ++++---- libraries/ATT_IOT/NW_WatchDog.h | 2 +- libraries/ATT_IOT/examples/watchdog/watchdog.ino | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) 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.