Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
UpdateHub Firmware Over-the-Air for Zephyr Project. More...
Enumerations | |
enum | updatehub_response { UPDATEHUB_NETWORKING_ERROR = 0 , UPDATEHUB_INCOMPATIBLE_HARDWARE , UPDATEHUB_UNCONFIRMED_IMAGE , UPDATEHUB_METADATA_ERROR , UPDATEHUB_DOWNLOAD_ERROR , UPDATEHUB_INSTALL_ERROR , UPDATEHUB_FLASH_INIT_ERROR , UPDATEHUB_OK , UPDATEHUB_HAS_UPDATE , UPDATEHUB_NO_UPDATE } |
Responses messages from UpdateHub. More... | |
Functions | |
void | updatehub_autohandler (void) |
Runs UpdateHub probe and UpdateHub update automatically. | |
enum updatehub_response | updatehub_probe (void) |
The UpdateHub probe verify if there is some update to be performed. | |
enum updatehub_response | updatehub_update (void) |
Apply the update package. | |
int | updatehub_confirm (void) |
Confirm that image is running as expected. | |
int | updatehub_reboot (void) |
Request system to reboot. | |
UpdateHub Firmware Over-the-Air for Zephyr Project.
enum updatehub_response |
#include <zephyr/mgmt/updatehub.h>
Responses messages from UpdateHub.
These messages are used to inform the server and the user about the process status of the UpdateHub and also used to standardize the errors that may occur.
void updatehub_autohandler | ( | void | ) |
#include <zephyr/mgmt/updatehub.h>
Runs UpdateHub probe and UpdateHub update automatically.
The updatehub_autohandler handles the whole process in pre-determined time intervals.
int updatehub_confirm | ( | void | ) |
#include <zephyr/mgmt/updatehub.h>
Confirm that image is running as expected.
Must be used before the UpdateHub probe. It should be one of first actions after reboot.
enum updatehub_response updatehub_probe | ( | void | ) |
#include <zephyr/mgmt/updatehub.h>
The UpdateHub probe verify if there is some update to be performed.
int updatehub_reboot | ( | void | ) |
#include <zephyr/mgmt/updatehub.h>
Request system to reboot.
enum updatehub_response updatehub_update | ( | void | ) |
#include <zephyr/mgmt/updatehub.h>
Apply the update package.
Must be used after the UpdateHub probe, if you have updates to be made, will perform the installation of the new image and the hardware will rebooting.