Unify Framework Lib 1.6.0
|
OTA status updates module. More...
Go to the source code of this file.
Functions | |
void | publish_status_string (const dotdot_unid_t &unid, const dotdot_endpoint_id_t &endpoint, const ota_uiid_t &uiid, const std::string &val, const std::string &status, uint32_t cluster_revision) |
Publish OTA status update for string value. More... | |
void | publish_status_unsigned_long (const dotdot_unid_t &unid, const dotdot_endpoint_id_t &endpoint, const ota_uiid_t &uiid, const unsigned long val, const std::string &status, uint32_t cluster_revision) |
Publish OTA status update for unsigned long value. More... | |
std::string | convert_last_error_to_label (uic_ota::last_error_t last_error) |
Convert last error to label. More... | |
std::string | convert_status_to_label (uic_ota::status_t status) |
Conver status to label. More... | |
OTA status updates module.
This module implements the logic for publishing OTA subscriptions.
std::string convert_last_error_to_label | ( | uic_ota::last_error_t | last_error | ) |
Convert last error to label.
last_error | last error enum value. |
std::string convert_status_to_label | ( | uic_ota::status_t | status | ) |
Conver status to label.
status | last error enum value. |
void publish_status_string | ( | const dotdot_unid_t & | unid, |
const dotdot_endpoint_id_t & | endpoint, | ||
const ota_uiid_t & | uiid, | ||
const std::string & | val, | ||
const std::string & | status, | ||
uint32_t | cluster_revision | ||
) |
Publish OTA status update for string value.
unid | unique identifier id. |
endpoint | endpoint id. |
uiid | unique image identifier id. |
val | string value. |
status | the status topic to update to. |
cluster_revision | cluster revision number. |
void publish_status_unsigned_long | ( | const dotdot_unid_t & | unid, |
const dotdot_endpoint_id_t & | endpoint, | ||
const ota_uiid_t & | uiid, | ||
const unsigned long | val, | ||
const std::string & | status, | ||
uint32_t | cluster_revision | ||
) |
Publish OTA status update for unsigned long value.
unid | unique identifier id. |
endpoint | endpoint id. |
uiid | unique image identifier id. |
val | unsgined long value. |
status | the status topic to update to. |
cluster_revision | cluster revision number. |