Unify Framework Lib 1.6.0
|
Functions | |
void | set_unid_poll (std::shared_ptr< TimeoutHandler > timeout_handler) |
Setting image status of a specific image key. More... | |
void | pop_unid_poll (const std::string &unid) |
Pop key from image key poll. More... | |
bool | get_unid_poll_state (const std::string &unid) |
Get image key poll state. More... | |
void | set_unid_poll_state_true (const std::string &unid) |
Set UNID poll state. More... | |
bool | is_unid_in_poll (const std::string &unid) |
Check if UNID in poll. More... | |
uic_ota::image_ready_funct_t | get_unid_callback (const std::string &unid) |
Get the image callback for a specific image key. More... | |
bool | is_poll_topic_subscribed (const std::string &topic) |
Check if the topic is already subscribed. More... | |
void | set_unid_listening (const std::string &uiid, const std::string &unid) |
Set UNID to listening on UIID. More... | |
std::vector< std::string > | get_unids_listening (const std::string &uiid) |
Get all UNIDs listening to a specific UIID. More... | |
std::size_t | get_unids_listening_count (const std::string &uiid) |
Get count of listening UNIDs to a UIID. More... | |
void | remove_unid_listening (const std::string &uiid, const std::string &unid) |
Remove UNID listening on UIID. More... | |
std::vector< std::string > | get_uiids_unid_is_listening_to (const std::string &unid) |
Get all UIIDs which a single UNID is listening to. More... | |
std::map< std::string, std::vector< std::string >, std::less<> > | get_uiids_and_unids_listening () |
Get all UIIDs and UNIDs active. More... | |
void | set_status_published_cached (const dotdot_unid_t &unid, const dotdot_endpoint_id_t &ep) |
Set UNID and endpoint as published to. More... | |
bool | is_status_published (const dotdot_unid_t &unid, const dotdot_endpoint_id_t &ep) |
Check if UNID and ep has been published to. More... | |
std::map< std::string, std::vector< endpoint_cache_t >, std::less<> > | get_map_status_published_cached_and_clear () |
Get map of published UNID and endpoints. More... | |
std::vector< endpoint_cache_t > | get_endpoints_status_published_and_pop (const dotdot_unid_t &unid) |
Get published status updates on UNID and pop. More... | |
std::vector< endpoint_cache_t > unid_state_handler::get_endpoints_status_published_and_pop | ( | const dotdot_unid_t & | unid | ) |
Get published status updates on UNID and pop.
std::map< std::string, std::vector< endpoint_cache_t >, std::less<> > unid_state_handler::get_map_status_published_cached_and_clear | ( | ) |
Get map of published UNID and endpoints.
std::map< std::string, std::vector< std::string >, std::less<> > unid_state_handler::get_uiids_and_unids_listening | ( | ) |
Get all UIIDs and UNIDs active.
std::vector< std::string > unid_state_handler::get_uiids_unid_is_listening_to | ( | const std::string & | unid | ) |
Get all UIIDs which a single UNID is listening to.
unid | end-note id. |
uic_ota::image_ready_funct_t unid_state_handler::get_unid_callback | ( | const std::string & | unid | ) |
Get the image callback for a specific image key.
unid | Image UNID for getting image ready callback. |
bool unid_state_handler::get_unid_poll_state | ( | const std::string & | unid | ) |
Get image key poll state.
unid | end-note id. |
std::vector< std::string > unid_state_handler::get_unids_listening | ( | const std::string & | uiid | ) |
Get all UNIDs listening to a specific UIID.
uiid | unique image identifier ID. |
std::size_t unid_state_handler::get_unids_listening_count | ( | const std::string & | uiid | ) |
Get count of listening UNIDs to a UIID.
uiid | unique image identifier ID. |
bool unid_state_handler::is_poll_topic_subscribed | ( | const std::string & | topic | ) |
Check if the topic is already subscribed.
topic | MQTT topic. |
bool unid_state_handler::is_status_published | ( | const dotdot_unid_t & | unid, |
const dotdot_endpoint_id_t & | ep | ||
) |
Check if UNID and ep has been published to.
unid | end-note id to check. |
ep | endpoint ID to check. |
bool unid_state_handler::is_unid_in_poll | ( | const std::string & | unid | ) |
Check if UNID in poll.
unid | end-note id. |
void unid_state_handler::pop_unid_poll | ( | const std::string & | unid | ) |
Pop key from image key poll.
unid | UNID in que. |
void unid_state_handler::remove_unid_listening | ( | const std::string & | uiid, |
const std::string & | unid | ||
) |
Remove UNID listening on UIID.
uiid | unique image identifier ID. |
unid | end-note id. |
void unid_state_handler::set_status_published_cached | ( | const dotdot_unid_t & | unid, |
const dotdot_endpoint_id_t & | ep | ||
) |
Set UNID and endpoint as published to.
unid | end-note id set as published. |
ep | Endpoint ID to set as published to. |
void unid_state_handler::set_unid_listening | ( | const std::string & | uiid, |
const std::string & | unid | ||
) |
Set UNID to listening on UIID.
uiid | unique image identifier ID. |
unid | end-note id. |
void unid_state_handler::set_unid_poll | ( | std::shared_ptr< TimeoutHandler > | timeout_handler | ) |
Setting image status of a specific image key.
timeout_handler | handler |
void unid_state_handler::set_unid_poll_state_true | ( | const std::string & | unid | ) |
Set UNID poll state.
unid | end-note id. |