Menu

preSet...()

preSet...()

With preSet's you can set various options to influence how begin() sets things up. All calls to these function's must be done before calling begin().

 

preSetDeviceName (String)
Set the device name, this is used as your Wifi Ap name in WIFI_AP mode. And is also used for your MDNS responder: http://example-name.local
 

preSetAutoUpdate(bool)
Setting to true will make the device do an update-check immediately after calling begin(). The default is true
 

preSetAutoConfig(bool)
Set whether or not the device should go into config mode after after failing to connect to a Wifi AP. The default is true
 

preSetWifi(String, String)
Set the WiFi credentials without going through the captive portal. For development only! Make sure to delete this preSet when you publish your App.
 

Example of using preSet's:

...
void setup() {  
  IAS.preSetDeviceName("virginsoil");
  IAS.preSetAutoUpdate(false);
  IAS.preSetAutoConfig(false);
  IAS.preSetWifi("ssid","password");

  ...
}

 

Added by