Unify Framework Lib 1.6.0
|
MQTT actions supporting downloading images. More...
#include "ota.hpp"
Go to the source code of this file.
Namespaces | |
namespace | ota_download |
Functions | |
void | ota_download::set_image_cache_size (unsigned long int cache_size) |
Set the image cache size for download. More... | |
void | ota_download::set_image_base_path (const std::string &image_base_path) |
Set the image base path where image files are saved. More... | |
void | ota_download::set_image_available_callback (const uic_ota::image_available_func_t &image_available_cb) |
Set the callback called for available images. More... | |
bool | ota_download::available_info_callback_initialized () |
Check if available info callback is initialized. More... | |
void | ota_download::info_callback (const char *topic, const char *message, const size_t message_length) |
Callback function to be called when revceiving image files information on info topic. More... | |
void | ota_download::get (const std::string &image_key, const std::string &subscribe_topic, const std::string &publish_topic, const uic_ota::image_ready_funct_t &image_ready_cb, uint32_t timeout_s) |
Function for downloading images. More... | |
MQTT actions supporting downloading images.
This module enables functionality for downloading images through the MQTT broker. The module complies with the Unify spec.