OTA Updates

System.updatesPending()

// PROTOTYPE
inline uint8_t updatesPending();

When a device is scheduled to receive a standard updates of device firmware, the update occurs after the device resets or handshakes with the cloud again. If the device is online when the update is released, it will receive a notification that an update is pending via a cloud event.

Using System.updatesPending() polls the current status to see if an update is pending. The check is fast and checking does not use data or data operations. It is also possible to use the firmware_updates system event to register for a callback when it changes.

See OTA update control for more information.

Show older information about updatesPending