当前位置:网站首页>mosquitto. H learning
mosquitto. H learning
2022-07-18 11:09:00 【Fog_ in】
( from mosquitto.h)
Catalog
Library version 、 initialization 、 clear :
Client creation 、 Destroy and initialize
User name and password settings
Connect 、 Reconnection 、 Disconnection
Release 、 subscribe 、 Unsubscribe
Library version 、 initialization 、 clear :
| mosquitto_lib_version | Available for acquisition mosquitto Library version information . |
| mosquitto_lib_init | Must be in any other mosquitto Call before function . |
| mosquitto_lib_cleanup | Call the free resources associated with the Library . |
Client creation 、 Destroy and initialize
| mosquitto_new | Create a new mosquitto Client instance . |
| mosquitto_destroy | Used to release and mosquitto Memory associated with the client instance . |
| mosquitto_reinitialise | This function allows you to reuse existing mosquitto client . |
User name and password settings
| mosquitto_username_pw_set | by mosquitto Instance configuration user name and password . |
Connect 、 Reconnection 、 Disconnection
| mosquitto_connect | Connect to MQTT agent . |
| mosquitto_connect_bind | Connect to MQTT agent . |
| mosquitto_connect_bind_v5 | Connect to MQTT agent . |
| mosquitto_connect_async | Connect to MQTT agent . |
| mosquitto_connect_bind_async | Connect to MQTT agent . |
| mosquitto_connect_srv | Connect to MQTT agent . |
| mosquitto_reconnect | Reconnect to the agent . |
| mosquitto_reconnect_async | Reconnect to the agent . |
| mosquitto_disconnect | Disconnect from agent . |
| mosquitto_disconnect_v5 | Disconnect from agent , And attached MQTT attribute . |
Release 、 subscribe 、 Unsubscribe
| mosquitto_publish | Post a message about a given topic . |
| mosquitto_publish_v5 | Post a message about a given topic , And add MQTT attribute . |
| mosquitto_subscribe | Subscribe to topics . |
| mosquitto_subscribe_v5 | Subscription has additional MQTT The theme of the attribute . |
| mosquitto_subscribe_multiple | Subscribe to multiple topics . |
| mosquitto_unsubscribe | Unsubscribe from a topic . |
| mosquitto_unsubscribe_v5 | Unsubscribe has additional MQTT The theme of the attribute . |
| mosquitto_unsubscribe_multiple | Unsubscribe from multiple topics . |
Callback function
| mosquitto_connect_callback_set | Set connection callback . |
| mosquitto_connect_with_flags_callback_set | Set connection callback . |
| mosquitto_connect_v5_callback_set | Set connection callback . |
| mosquitto_disconnect_callback_set | Set the disconnect callback . |
| mosquitto_disconnect_v5_callback_set | Set the disconnect callback . |
| mosquitto_publish_callback_set | Set publish callback . |
| mosquitto_publish_v5_callback_set | Set publish callback . |
| mosquitto_message_callback_set | Set the message callback . |
| mosquitto_message_v5_callback_set | Set the message callback . |
| mosquitto_subscribe_callback_set | Set subscription callback . |
| mosquitto_subscribe_v5_callback_set | Set subscription callback . |
| mosquitto_unsubscribe_callback_set | Set unsubscribe callback . |
| mosquitto_unsubscribe_v5_callback_set | Set unsubscribe callback . |
| mosquitto_log_callback_set | Set logging callback . |
Network loop
| mosquitto_loop_forever | This function calls... For you in an infinite blocking loop loop(). |
| mosquitto_loop_start | This is part of the threaded client interface . |
| mosquitto_loop_stop | This is part of the threaded client interface . |
| mosquitto_loop | The main network loop of the client . |
Network cycle
| mosquitto_socket | return mosquitto Socket handle of the instance . |
| mosquitto_want_write | If there is data ready to be written to the socket , Then return to true. |
| mosquitto_threaded_set | Used to tell the library that the application is using threads , But don't use mosquitto_loop_start. |
TLS Support
| mosquitto_tls_set | Configure the client to get certificate based SSL/TLS Support . |
| mosquitto_tls_insecure_set | Configure the authentication of the server hostname in the server certificate . |
| mosquitto_tls_opts_set | Set up advanced SSL/TLS Options . |
| mosquitto_tls_psk_set | Configure the client to obtain a pre shared key based TLS Support . |
| mosquitto_ssl_get | Retrieve points to this client for TLS Connected SSL Pointer to structure . |
Utility functions
| mosquitto_strerror | Call to get mosquitto Error number const String description . |
| mosquitto_connack_string | Call to get MQTT Connection result const String description . |
| mosquitto_reason_string | Call to get MQTT Reason code const String description . |
| mosquitto_string_to_command | Get representation MQTT Command string input , And convert it to libmosquitto Integer representation . |
| mosquitto_sub_topic_tokenise | Tokenize a topic or subscription string into an array of strings representing the topic hierarchy . |
| mosquitto_sub_topic_tokens_free | mosquitto_sub_topic_tokenise Available memory allocated in . |
| mosquitto_topic_matches_sub | Check whether the topic matches the subscription . |
| mosquitto_topic_matches_sub2 | Check whether the topic matches the subscription . |
| mosquitto_pub_topic_check | Check whether the topic used for publishing is valid . |
| mosquitto_pub_topic_check2 | Check whether the topic used for publishing is valid . |
| mosquitto_sub_topic_check | Check whether the topic used for subscription is valid . |
| mosquitto_sub_topic_check2 | Check whether the topic used for subscription is valid . |
| mosquitto_validate_utf8 | Helper functions , For use in accordance with UTF-8 Normative and MQTT Added item verification UTF-8 Whether the string is valid . |
边栏推荐
- Digital display of potentiometer based on ADC0832
- The Institute of standardization issued the requirements for cloud migration related capabilities, and Wanbo Intelligent Cloud participated in the requirements and white paper preparation
- Buckle exercise - 19 find and minimum K pairs of numbers
- socket
- 一文读懂软件测试的常见分类
- Views on programming language learning and use
- C: free(): 无效指针中止(核心转储)的思考
- 实验五 图像分割与描述
- ping报文与ICMP报文头
- Algorithm In Interview
猜你喜欢

redis之redis概念、配置、Sentinel高可用

LCD1602 display key position

Design of pattern water lamp based on 51 single chip microcomputer
![[MySQL must know and know] conditional statement](/img/40/333f3ef4822da00f693ee57c9f5f21.png)
[MySQL must know and know] conditional statement

2面字节,被面试官抬着走出去,分享给大家

基于ADC0832的电位器数值显示
![class path resource [xxx.properties] cannot be opened because it does not exist](/img/e3/5e5a568dbf2fcceae8b2d4a7249763.png)
class path resource [xxx.properties] cannot be opened because it does not exist

Expérience 5 segmentation et description des images

【开发教程6】疯壳·开源蓝牙智能健康手表-触摸

MGRE及GRE综合实验
随机推荐
MQTT——服务质量Qos
The Institute of standardization issued the requirements for cloud migration related capabilities, and Wanbo Intelligent Cloud participated in the requirements and white paper preparation
4*4*4光立方制作分享
使用堆外内存
IP static routing comprehensive experiment
一文读懂软件测试的常见分类
CENTOS 安装MySQL
Usage and difference between sizeof and strlen in C language
双线程猜数字
OLED循环显示图片文字
【Unity3D】UGUI之Toggle
实验二 图像增强
socket
P1088 [noip2004 popularity group question 4] Martians ← next_ permutation
STM32 reads the data value of biaxial remote sensing
redis之redis概念、配置、Sentinel高可用
The digital tube displays numbers circularly
You missed the point of promises
MGRE及GRE综合实验
js 数组对象中goods_id相同和并一个对象,把goods_size_id值添加一起