Zigbee Protocol Controller 1.6.0
ota_mqtt.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
23#ifndef OTA_MQTT_HPP
24#define OTA_MQTT_HPP
25
26// Standard component
27#include <string>
28
29// This component
30#include "ota.hpp"
31
32// Unify Components
33#include "uic_typedefs.h"
34#include "sl_status.h"
35
47 const dotdot_endpoint_id_t &endpoint,
48 const ota_uiid_t &uiid,
49 const std::string &val,
50 const std::string &status,
51 uint32_t cluster_revision);
52
64 const dotdot_endpoint_id_t &endpoint,
65 const ota_uiid_t &uiid,
66 const unsigned long val,
67 const std::string &status,
68 uint32_t cluster_revision);
69
78
87
88#endif //OTA_MQTT_HPP
last_error_t
Structure used to indicate the last error status. Used by protocol controllers to report firmware dow...
Definition: ota.hpp:153
status_t
Structure used to indicate the firmware upload status. used in function ota::status_update.
Definition: ota.hpp:127
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.
std::string convert_last_error_to_label(uic_ota::last_error_t last_error)
Convert last error to label.
std::string convert_status_to_label(uic_ota::status_t status)
Conver status to label.
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.
SL Status Codes.
Generic type definitions for Unify.
const char * ota_uiid_t
Definition: uic_typedefs.h:40
uint8_t dotdot_endpoint_id_t
Definition: uic_typedefs.h:38
const char * dotdot_unid_t
Definition: uic_typedefs.h:39