99#ifndef OTA_DOWNLOAD_HPP
100#define OTA_DOWNLOAD_HPP
146 const size_t message_length);
160void get(
const std::string &image_key,
161 const std::string &subscribe_topic,
162 const std::string &publish_topic,
Definition: ota_download.hpp:105
bool available_info_callback_initialized()
Check if available info callback is initialized.
void set_image_available_callback(const uic_ota::image_available_func_t &image_available_cb)
Set the callback called for available images.
void 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.
void 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.
void set_image_base_path(const std::string &image_base_path)
Set the image base path where image files are saved.
void set_image_cache_size(unsigned long int cache_size)
Set the image cache size for download.
std::function< void(const image_ready_result_t, const std::string &)> image_ready_funct_t
this callback is returned when the actually firmware image is downloaded and stored to disk,...
Definition: ota.hpp:209
std::function< void(const meta_t &)> image_available_func_t
Callback function that is triggered when an new firmware image is detected on the image provider.
Definition: ota.hpp:201