Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Hawkbit Firmware Over-the-Air

Hawkbit Firmware Over-the-Air for Zephyr Project. More...

Macros

#define HAWKBIT_JSON_URL   "/default/controller/v1"
 

Enumerations

enum  hawkbit_response {
  HAWKBIT_NETWORKING_ERROR , HAWKBIT_UNCONFIRMED_IMAGE , HAWKBIT_METADATA_ERROR , HAWKBIT_DOWNLOAD_ERROR ,
  HAWKBIT_OK , HAWKBIT_UPDATE_INSTALLED , HAWKBIT_NO_UPDATE , HAWKBIT_CANCEL_UPDATE ,
  HAWKBIT_PROBE_IN_PROGRESS
}
 Response message from Hawkbit. More...
 

Functions

int hawkbit_init (void)
 Init the flash partition. More...
 
void hawkbit_autohandler (void)
 Runs Hawkbit probe and Hawkbit update automatically. More...
 
enum hawkbit_response hawkbit_probe (void)
 The Hawkbit probe verify if there is some update to be performed. More...
 

Detailed Description

Hawkbit Firmware Over-the-Air for Zephyr Project.

Macro Definition Documentation

◆ HAWKBIT_JSON_URL

#define HAWKBIT_JSON_URL   "/default/controller/v1"

Enumeration Type Documentation

◆ hawkbit_response

#include <include/mgmt/hawkbit.h>

Response message from Hawkbit.

These messages are used to inform the server and the user about the process status of the Hawkbit and also used to standardize the errors that may occur.

Enumerator
HAWKBIT_NETWORKING_ERROR 
HAWKBIT_UNCONFIRMED_IMAGE 
HAWKBIT_METADATA_ERROR 
HAWKBIT_DOWNLOAD_ERROR 
HAWKBIT_OK 
HAWKBIT_UPDATE_INSTALLED 
HAWKBIT_NO_UPDATE 
HAWKBIT_CANCEL_UPDATE 
HAWKBIT_PROBE_IN_PROGRESS 

Function Documentation

◆ hawkbit_autohandler()

void hawkbit_autohandler ( void  )

#include <include/mgmt/hawkbit.h>

Runs Hawkbit probe and Hawkbit update automatically.

The hawkbit_autohandler handles the whole process in pre-determined time intervals.

◆ hawkbit_init()

int hawkbit_init ( void  )

#include <include/mgmt/hawkbit.h>

Init the flash partition.

Returns
0 on success, negative on error.

◆ hawkbit_probe()

enum hawkbit_response hawkbit_probe ( void  )

#include <include/mgmt/hawkbit.h>

The Hawkbit probe verify if there is some update to be performed.

Returns
HAWKBIT_UPDATE_INSTALLED has an update available.
HAWKBIT_NO_UPDATE no update available.
HAWKBIT_NETWORKING_ERROR fail to connect to the Hawkbit server.
HAWKBIT_METADATA_ERROR fail to parse or to encode the metadata.
HAWKBIT_OK if success.
HAWKBIT_DOWNLOAD_ERROR faile while downloading the update package.