We just released a new version of Arduino IoT Cloud backend. Since there have been some changes and you're one of our beta users, we want to inform you about them. We especially value users like you and want to keep you in the loop.
Callback Name Format
The format for callback names will be different. Instead of [propertyName]callback, use on[propertyName]Change.
This will affect a few items when you update your code using the EDIT CODE button:
- The cloudProperties.h file will be replaced with the new content based on the callback name change.
- New callback templates will be added to your ino file.
Please note that existing callbacks will not be deleted.
An initPropertiesValues() Method Added
Every time you generate or update a sketch, a method called initPropertiesValues() will be updated accordingly with your property configuration. The properties values will be initialized to the configured minimum value, or with the default value. For example, if the type is boolean, it will be initialized to false.
ArduinoCloud.poll() Renamed to ArduinoCloud.update()
Any sketch that has already been generated will not be modified. So the ArduinoCloud.poll() method will still work. However, since it is now deprecated, we recommend that you update your sketches for future use.
Sketch Names now like Arduino IDE
Sketch names will now use the same naming format as Arduino IDE. If your thing is named something like "mything", the related sketch will be named "mything_[date][incremental_letter]" (e.g., mything_oct16a). This will prevent conflicts in case a thing is created, deleted and recreated the same day.
Links to Related Things
Generated sketches will now contain a link to the related thing.
Those are all of the recent changes. We hope you find improvements useful. They come from the excellent feedback we've received from our beta users like you. So, please keep the feedback coming. For now, thanks for being a beta user.