Skip to content

Pre-release for IOTAppStory ESP Library 2.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Onno-Dirkzwager Onno-Dirkzwager released this 14 Mar 00:55
· 8 commits to master since this release
2d629e7

It seems we are getting closer to a final release of 2.1.0

Improvements

  • NTP time sync routine | Prevent long sync times especially for the ESP8266
  • EEPROM addField | Prevent errors when adding more fields later on | Breaking *
  • The onFirmwareUpdateError callback now returns a message (String statusMessage)

Additions

  • onFirmwareNoUpdate(String statusMessage) callback | Called when no updates are available.
  • added function eepFieldsConvertOldToNew() to convert the old eeprom style layout to the new style.

Updated examples #178 #179 #183
Multiple small changes to make the examples more in line with the last library updates. (ntp time, callbacks, latest root cert etc.)

New loader sketch
Added the DirectLoader sketch for adding devices to IOTAppStory.com

Breaking #180 #181
The EEPROM layout used by the addField() function has slightly changed. This was wrong all along! And caused issues for developers adding more fields later on. This "Fix" will break backwards compatibility with your previous stored fields. So we made the eepFieldsConvertOldToNew() function to help you convert the old to the new EEPROM layout.

You need to run this in the onFirstBoot callback. And no worries! It will only run if it detects the old EEPROM layout.

IAS.onFirstBoot( {
IAS.eepFieldsConvertOldToNew();
});

If you need to / want to keep running the "old style" you can change this in the config.h file:
#define EEPROM_STORAGE_STYLE EEP_NEW // EEP_OLD / EEP_NEW