|
Unify Framework Lib 1.7.0
|
Go to the source code of this file.
Macros | |
| #define | MQTT_TOPIC_MAX_LENGTH 512 |
| #define | MQTT_MESSAGE_MAX_LENGTH 512 |
| #define | REGEX_NOT_STATE_OR_MQTT_CLIENT_TOPICS "^(?!((ucl\\/by-unid\\/.*\\/State$)|(ucl\\/by-mqtt-client\\/.*))).*" |
| #define | REGEX_NOT_STATE_TOPIC "^(?!ucl\\/by-unid\\/.*\\/State$).*" |
| #define | REGEX_ALL_TOPICS "^.+" |
Typedefs | |
| typedef void(* | mqtt_message_callback_t) (const char *topic, const char *message, const size_t message_length) |
| A callback type for pushing incoming messages. More... | |
| typedef void(* | mqtt_message_callback_ex_t) (const char *topic, const char *message, const size_t message_length, void *user) |
| typedef void(* | mqtt_connection_callbacks_t) () |
| A callback type for a before disconnect and after connect. More... | |
Functions | |
| sl_status_t | uic_mqtt_setup () |
| int | uic_mqtt_teardown () |
| void | uic_mqtt_publish (const char *topic, const char *message, const size_t message_length, bool retain) |
| Add the message and topic to publisher queue system. More... | |
| void | uic_mqtt_unretain (const char *prefix_pattern) |
| Un-retain a previously retained message. More... | |
| int | uic_mqtt_count_topics (const char *prefix_pattern) |
| Count the number of topics published. More... | |
| void | uic_mqtt_unretain_by_regex (const char *regex) |
| Un-retain a previously retained message. More... | |
| void | uic_mqtt_subscribe (const char *topic, mqtt_message_callback_t callback) |
| Subscribe to a topic. More... | |
| void | uic_mqtt_subscribe_ex (const char *topic, mqtt_message_callback_ex_t callback, void *user) |
| Subscribe to a topic. More... | |
| void | uic_mqtt_unsubscribe (const char *topic, mqtt_message_callback_t callback) |
| Unsubscribe from a topic. More... | |
| void | uic_mqtt_unsubscribe_ex (const char *topic, mqtt_message_callback_ex_t callback, void *user) |
| Unsubscribe from a topic. More... | |
| void | uic_mqtt_set_before_disconnect_callback (mqtt_connection_callbacks_t callback) |
| Set a callback which will be executed before calling a disconnect. More... | |
| void | uic_mqtt_set_after_connect_callback (mqtt_connection_callbacks_t callback) |
| Set a callback which will be executed after having connected. More... | |
| const char * | uic_mqtt_get_client_id () |
| Gets the MQTT Client ID in used by the MQTT Client. More... | |
| bool | uic_mqtt_is_connected_to_broker () |
| Checks if we are currently connected to an MQTT Broker. More... | |