The IASLoader is a “starter” sketch / app which connects your device to You will have to upload this by serial to every new device you want to use with our service. After this initial upload. Serial cables will be a thing off the past and future uploads will go “over the air”


Lets start

Open the IASLoader example sketch: File > Examples > IOTAppStory-ESP > IASLoader
Wemos users with the button and screen shields can use the Wemos-IASLoader sketch instead.

From library v2.1.0 on we need to select at least 64Kb of SPIFFS for storing certificates.

Flash Size(ESP8266)
For the ESP8266 you can find these settings under Tools > Flash Size

For the ESP32 you can find these settings under Tools > Partition Scheme: Make sure to select a scheme that supports both OTA & SPIFFS.

After double checking your board & flash size settings, compile and upload the sketch to your device. You do NOT need to compile or upload a SPIFFS image.


Follow the instructions in your serial monitor:

  • Connect your phone to the Wifi accespoint "initloader"
  • Open in your browser
  • Enter your Wifi credentials


Next we need to register this device to and your account.

  • If necessary log into your account
  • Enter a device name (eg. benchtester, weatherstation nr2, thermo1 etc.)
  • Select your boardtype and click next

From 2.1.0-RC3 on your devices need the root certificate to communicate with our server. So while still in config head over to the certificate page and press the "Get IAS root cert." button. (you can also use this page to store other certificates used by your sketch.

3rd party cookies
Depending on your browsers settings you might need to enable 3rd party cookies. You are visiting your device on a local ip address. And when logging into your account at IOTAppStory we set a cookie as part of logging in. From your browsers perspective this cookie is set by a third party:

Library 2.1.0 has some built in checks to warn you about this. 2.0.X does not.


  • Login seems fine
  • Device registration will fail after pressing Next
First tests
Install the IAS ESP-Library

Post by

Onno Dirkzwager