23#ifndef DOTDOT_MQTT_PARSING_HELPERS_HPP
24#define DOTDOT_MQTT_PARSING_HELPERS_HPP
82 std::string &last_item);
89std::map<std::string, bool>
Definition: dotdot_bitmap.hpp:34
A class representation of a bitmap.
uint32_t sl_status_t
Definition: sl_status.h:139
Definition: dotdot_mqtt_parsing_helpers.hpp:35
std::map< std::string, bool > get_bitmap_value_names(uint32_t value, dotdot_bitmap bitmap_handler)
Finds the list of fields that are set to true/false for a bitmap.
bool parse_topic_no_endpoint(const std::string &topic, std::string &unid)
Helper function to extract unid from a topic string.
uint32_t get_bitmap_decimal_value(std::string key, nlohmann::json &jsn, dotdot_bitmap bitmap_handler)
Get the bitmap decimal value object.
sl_status_t get_topic_last_item(const std::string &topic, std::string &last_item)
Helper function to extract the last item of an MQTT topic.
uint32_t get_bitmap_decimal_value_from_array(size_t index, nlohmann::json &jsn, dotdot_bitmap bitmap_handler)
Get the bitmap decimal value from array object.
bool parse_topic_group_id(const std::string &&topic, dotdot_group_id_t &group_id)
Helper function to extract group ID from a topic string.
bool parse_topic(const std::string &topic, std::string &unid, dotdot_endpoint_id_t &endpoint)
Helper function to extract unid and endpoint from a topic string.
Generic type definitions for Unify.
uint16_t dotdot_group_id_t
Definition: uic_typedefs.h:41
uint8_t dotdot_endpoint_id_t
Definition: uic_typedefs.h:38