Wiki

callHome()

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;
    }
}

 

loop()
dPinConv()

Post by

Onno Dirkzwager