callHome(bool spiffs)
Calls IOTAppStory.com to check for updates. The setCallHomeInterval() function mentioned above already handles calling home at a certain interval. But if you would like to decide yourself under which circumstances and when to call home. This is for you.
Write whatever conditions you want and simply add the callHome() function.
If spiffs is true, the call also checks if there is a new filesystem image to download.
...
void loop() {
IAS.loop();
if(batLvl >= 20 && lstUpd != today){
IAS.callHome();
lstUpd = today;
}
}
We use cookies on this website. View our cookie policy to find out how and why.
If you'd like to disable cookies on this device, please view our information pages on "How to manage cookies". Please be aware that parts of the site will not function correctly if you disable cookies.
By closing this message, you consent to our use of cookies on this device in accordance with our cookie policy unless you have disabled them.