<?xml version='1.0' encoding='UTF-8' standalone='no'?> <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16"> <compounddef id="mqtt__opts_8h" kind="file" language="C++"> <compoundname>mqtt_opts.h</compoundname> <includes local="yes">lwip/opt.h</includes> <incdepgraph> <node id="2"> <label>lwip/opt.h</label> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h</label> <link refid="mqtt__opts_8h"/> <childnode refid="2" relation="include"> </childnode> </node> </incdepgraph> <sectiondef kind="define"> <memberdef kind="define" id="group__mqtt__opts_1gac5d0580d1caf57dac1cb56662e5d9f7b" prot="public" static="no"> <name>MQTT_CONNECT_TIMOUT</name> <initializer>100</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>Seconds for MQTT connect response timeout after sending connect request </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" line="92" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" bodystart="92" bodyend="-1"/> </memberdef> <memberdef kind="define" id="group__mqtt__opts_1ga1d89fda808c7047eab7a67d3785aea8e" prot="public" static="no"> <name>MQTT_CYCLIC_TIMER_INTERVAL</name> <initializer>5</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>Seconds between each cyclic timer call. </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" line="78" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" bodystart="78" bodyend="-1"/> </memberdef> <memberdef kind="define" id="group__mqtt__opts_1ga70627bafaffa071875cee9edc38d942b" prot="public" static="no"> <name>MQTT_OUTPUT_RINGBUF_SIZE</name> <initializer>256</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>Output ring-buffer size, must be able to fit largest outgoing publish message topic+payloads </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" line="56" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" bodystart="56" bodyend="-1"/> </memberdef> <memberdef kind="define" id="group__mqtt__opts_1gae82460b35de2291e9661e440c3458e8f" prot="public" static="no"> <name>MQTT_REQ_MAX_IN_FLIGHT</name> <initializer>4</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>Maximum number of pending subscribe, unsubscribe and publish requests to server . </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" line="71" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" bodystart="71" bodyend="-1"/> </memberdef> <memberdef kind="define" id="group__mqtt__opts_1ga262639f2b45f6e064fb53156396d6d0a" prot="public" static="no"> <name>MQTT_REQ_TIMEOUT</name> <initializer>30</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>Publish, subscribe and unsubscribe request timeout in seconds. </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" line="85" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" bodystart="85" bodyend="-1"/> </memberdef> <memberdef kind="define" id="group__mqtt__opts_1ga8275ef78a85fb14c3ac1423c70e45805" prot="public" static="no"> <name>MQTT_VAR_HEADER_BUFFER_LEN</name> <initializer>128</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>Number of bytes in receive buffer, must be at least the size of the longest incoming topic + 8 If one wants to avoid fragmented incoming publish, set length to max incoming topic length + max payload length + 8 </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" line="64" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h" bodystart="64" bodyend="-1"/> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> <para>MQTT client options </para> </detaileddescription> <programlisting> <codeline lineno="1"></codeline> <codeline lineno="6"><highlight class="comment">/*</highlight></codeline> <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2016<sp/>Erik<sp/>Andersson</highlight></codeline> <codeline lineno="8"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline> <codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="10"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,</highlight></codeline> <codeline lineno="11"><highlight class="comment"><sp/>*<sp/>are<sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline> <codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="13"><highlight class="comment"><sp/>*<sp/>1.<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline> <codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer.</highlight></codeline> <codeline lineno="15"><highlight class="comment"><sp/>*<sp/>2.<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline> <codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer<sp/>in<sp/>the<sp/>documentation</highlight></codeline> <codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>and/or<sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline> <codeline lineno="18"><highlight class="comment"><sp/>*<sp/>3.<sp/>The<sp/>name<sp/>of<sp/>the<sp/>author<sp/>may<sp/>not<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products</highlight></codeline> <codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.</highlight></codeline> <codeline lineno="20"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="21"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>``AS<sp/>IS''<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline> <codeline lineno="22"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF</highlight></codeline> <codeline lineno="23"><highlight class="comment"><sp/>*<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT</highlight></codeline> <codeline lineno="24"><highlight class="comment"><sp/>*<sp/>SHALL<sp/>THE<sp/>AUTHOR<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,</highlight></codeline> <codeline lineno="25"><highlight class="comment"><sp/>*<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT</highlight></codeline> <codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS</highlight></codeline> <codeline lineno="27"><highlight class="comment"><sp/>*<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline> <codeline lineno="28"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING</highlight></codeline> <codeline lineno="29"><highlight class="comment"><sp/>*<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY</highlight></codeline> <codeline lineno="30"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline> <codeline lineno="31"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="32"><highlight class="comment"><sp/>*<sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>the<sp/>lwIP<sp/>TCP/IP<sp/>stack.</highlight></codeline> <codeline lineno="33"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="34"><highlight class="comment"><sp/>*<sp/>Author:<sp/>Erik<sp/>Andersson</highlight></codeline> <codeline lineno="35"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>LWIP_HDR_APPS_MQTT_OPTS_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>LWIP_HDR_APPS_MQTT_OPTS_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="39"><highlight class="normal"></highlight></codeline> <codeline lineno="40"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"lwip/opt.h"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="41"><highlight class="normal"></highlight></codeline> <codeline lineno="42"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/><sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="43"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">"C"</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="44"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="45"><highlight class="normal"></highlight></codeline> <codeline lineno="55"><highlight class="preprocessor">#ifndef<sp/>MQTT_OUTPUT_RINGBUF_SIZE</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="56" refid="group__mqtt__opts_1ga70627bafaffa071875cee9edc38d942b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MQTT_OUTPUT_RINGBUF_SIZE<sp/>256</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="57"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="58"><highlight class="normal"></highlight></codeline> <codeline lineno="63"><highlight class="preprocessor">#ifndef<sp/>MQTT_VAR_HEADER_BUFFER_LEN</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="64" refid="group__mqtt__opts_1ga8275ef78a85fb14c3ac1423c70e45805" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MQTT_VAR_HEADER_BUFFER_LEN<sp/>128</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="65"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="66"><highlight class="normal"></highlight></codeline> <codeline lineno="70"><highlight class="preprocessor">#ifndef<sp/>MQTT_REQ_MAX_IN_FLIGHT</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="71" refid="group__mqtt__opts_1gae82460b35de2291e9661e440c3458e8f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MQTT_REQ_MAX_IN_FLIGHT<sp/>4</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="72"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="73"><highlight class="normal"></highlight></codeline> <codeline lineno="77"><highlight class="preprocessor">#ifndef<sp/>MQTT_CYCLIC_TIMER_INTERVAL</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="78" refid="group__mqtt__opts_1ga1d89fda808c7047eab7a67d3785aea8e" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MQTT_CYCLIC_TIMER_INTERVAL<sp/>5</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="79"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="80"><highlight class="normal"></highlight></codeline> <codeline lineno="84"><highlight class="preprocessor">#ifndef<sp/>MQTT_REQ_TIMEOUT</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="85" refid="group__mqtt__opts_1ga262639f2b45f6e064fb53156396d6d0a" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MQTT_REQ_TIMEOUT<sp/>30</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="86"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="87"><highlight class="normal"></highlight></codeline> <codeline lineno="91"><highlight class="preprocessor">#ifndef<sp/>MQTT_CONNECT_TIMOUT</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="92" refid="group__mqtt__opts_1gac5d0580d1caf57dac1cb56662e5d9f7b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MQTT_CONNECT_TIMOUT<sp/>100</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="93"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="94"><highlight class="normal"></highlight></codeline> <codeline lineno="99"><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="100"><highlight class="normal">}</highlight></codeline> <codeline lineno="101"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="102"><highlight class="normal"></highlight></codeline> <codeline lineno="103"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_HDR_APPS_MQTT_OPTS_H<sp/>*/</highlight><highlight class="preprocessor"></highlight></codeline> </programlisting> <location file="C:/Dev/git/UbixOS/sys/include/net/apps/mqtt_opts.h"/> </compounddef> </doxygen>