Skip to content

Commit

Permalink
watchdog don't show asset
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Bogaerts committed Nov 10, 2016
1 parent 082b3bd commit a523f0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions libraries/ATT_IOT/NW_WatchDog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libraries/ATT_IOT/NW_WatchDog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion libraries/ATT_IOT/examples/watchdog/watchdog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ void setup()
while(!Device.Connect(&ethClient, 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.
Expand Down

0 comments on commit a523f0a

Please sign in to comment.