mirror of https://github.com/eclipse/paho.mqtt.c
72 lines
2.9 KiB
HTML
72 lines
2.9 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>MQTT Client: MQTT Client library for C</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.3 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li class="current"><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>MQTT Client library for C </h1><p>An MQTT client library in C. © Copyright IBM Corp. 2009, 2011</p>
|
|
<p>An MQTT client application connects to MQTT-capable servers. A typical client is responsible for collecting information from a telemetry device and publishing the information to the server. It can also subscribe to topics, receive messages, and use this information to control the telemetry device. MQTT clients implement the published MQTT v3 protocol.</p>
|
|
<p><b>Using the client</b><br/>
|
|
Applications that use the client library typically use a similar structure: </p>
|
|
<ul>
|
|
<li>
|
|
Create a clent </li>
|
|
<li>
|
|
Set the options to connect to an MQTT server </li>
|
|
<li>
|
|
Set up callback functions if multi-threaded (asynchronous mode) operation is being used (see <a class="el" href="async.html">Asynchronous vs synchronous client applications</a>). </li>
|
|
<li>
|
|
Subscribe to any topics the client needs to receive </li>
|
|
<li>
|
|
Repeat until finished: <ul>
|
|
<li>
|
|
Publish any messages the client needs to </li>
|
|
<li>
|
|
Handle any incoming messages </li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
Disconnect the client </li>
|
|
<li>
|
|
Free any memory being used by the client </li>
|
|
</ul>
|
|
<p>Some simple examples are shown here: </p>
|
|
<ul>
|
|
<li>
|
|
<a class="el" href="pubsync.html">Synchronous publication example</a> </li>
|
|
<li>
|
|
<a class="el" href="pubasync.html">Asynchronous publication example</a> </li>
|
|
<li>
|
|
<a class="el" href="subasync.html">Asynchronous subscription example</a> </li>
|
|
</ul>
|
|
<p>Additional information about important concepts is provided here: </p>
|
|
<ul>
|
|
<li>
|
|
<a class="el" href="async.html">Asynchronous vs synchronous client applications</a> </li>
|
|
<li>
|
|
<a class="el" href="wildcard.html">Subscription wildcards</a> </li>
|
|
<li>
|
|
<a class="el" href="qos.html">Quality of service</a> </li>
|
|
</ul>
|
|
</div>
|
|
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 3 15:17:14 2012 for MQTT Client by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
|
|
</body>
|
|
</html>
|