📦 paho-mqtt-c-doc

46 pages

#

  • _h_t_t_p_proxies(3)HTTP Proxies The use of HTTP proxies can be controlled by environment variables or API calls. The MQTTClient_connectOptions.httpProxy and MQTTClient_connectOptions.httpsProxy fields of the…✨

A

  • async(3)Asynchronous vs synchronous client applications This client library supports two modes of operation. These are referred to as synchronous and asynchronous modes. If your application calls…✨
  • auto_reconnect(3)Automatic Reconnect The ability for the client library to reconnect automatically in the event of a connection failure was added in 1.1. The connection lost callback allows a flexible response to the…✨

C

  • callbacks(3)Callbacks You must not call a function from this API from within a callback otherwise a deadlock might result. The only exception to this is the ability to call connect within the connection lost…✨

M

O

  • offline_publish(3)Publish While Disconnected This feature was not originally available because with persistence enabled, messages could be stored locally without ever knowing if they could be sent. The client…✨

P

  • pubasync(3)Asynchronous publication example #include <stdio.h> #include <stdlib.h> #include <string.h> #include "MQTTClient.h" #if !defined(_WIN32) #include <unistd.h> #else #include <windows.h> #endif #define…✨
  • publish(3)Publication example #include <stdio.h> #include <stdlib.h> #include <string.h> #include "MQTTAsync.h" #if !defined(_WIN32) #include <unistd.h> #else #include <windows.h> #endif #if…✨
  • pubsync(3)Synchronous publication example #include <stdio.h> #include <stdlib.h> #include <string.h> #include "MQTTClient.h" #define ADDRESS "tcp://test.mosquitto.org:1883" #define CLIENTID "ExampleClientPub"…✨

Q

  • qos(3)Quality of service The MQTT protocol provides three qualities of service for delivering messages between clients and servers: "at most once", "at least once" and "exactly once". Quality of service…✨

S

  • subasync(3)Asynchronous subscription example #include <stdio.h> #include <stdlib.h> #include <string.h> #include "MQTTClient.h" #define ADDRESS "tcp://test.mosquitto.org:1883" #define CLIENTID…✨
  • subscribe(3)Subscription example #include <stdio.h> #include <stdlib.h> #include <string.h> #include "MQTTAsync.h" #if !defined(_WIN32) #include <unistd.h> #else #include <windows.h> #endif #if…✨

T

  • tracing(3)Tracing Runtime tracing is controlled by environment variables. Tracing is switched on by setting MQTT_C_CLIENT_TRACE. A value of ON, or stdout, prints to stdout, any other value is interpreted as a…✨

W

  • wildcard(3)Subscription wildcards Every MQTT message includes a topic that classifies it. MQTT servers use topics to determine which subscribers should receive messages published to the server. Consider the…✨