Wiki

begin()

begin(char eraseEeprom)

Set up IAS and start all dependent services.

If eraseEeprom is 'F' (full), the entire EEPROM (including wifi credentials and IAS activation code) will be erased on first boot of the sketch/app.

If eraseEeprom is 'P' (partial)(DEFAULT), some of the EEPROM (excluding wifi credentials and IAS activation code) will be erased on first boot of the sketch/app.

If eraseEeprom is 'L' (leave intact), none of the EEPROM (including wifi credentials and IAS activation code) will be erased on first boot of the sketch/app.

Example:

...

setup () {
    ...
    
    IAS.begin('P');
}

 

setCallHome()
callbacks...()

Post by

Onno Dirkzwager