From 0995176412616ae8f1cba51c8d609fe4b69687ea Mon Sep 17 00:00:00 2001 From: Ian Craggs Date: Thu, 29 Sep 2022 11:38:04 +0100 Subject: [PATCH] Update docs --- docs/MQTTAsync/html/_m_q_t_t_async_8h.html | 33 +- .../html/_m_q_t_t_async_8h_source.html | 1261 ++++++++--------- .../html/_m_q_t_t_client_persistence_8h.html | 2 +- ..._m_q_t_t_client_persistence_8h_source.html | 2 +- .../html/_m_q_t_t_properties_8h.html | 2 +- .../html/_m_q_t_t_properties_8h_source.html | 2 +- .../html/_m_q_t_t_reason_codes_8h.html | 2 +- .../html/_m_q_t_t_reason_codes_8h_source.html | 2 +- .../html/_m_q_t_t_subscribe_opts_8h.html | 2 +- .../_m_q_t_t_subscribe_opts_8h_source.html | 2 +- docs/MQTTAsync/html/annotated.html | 2 +- docs/MQTTAsync/html/async.html | 2 +- docs/MQTTAsync/html/auto_reconnect.html | 2 +- docs/MQTTAsync/html/callbacks.html | 2 +- docs/MQTTAsync/html/classes.html | 2 +- docs/MQTTAsync/html/files.html | 2 +- docs/MQTTAsync/html/functions.html | 2 +- docs/MQTTAsync/html/functions_vars.html | 2 +- docs/MQTTAsync/html/globals.html | 2 +- docs/MQTTAsync/html/globals_defs.html | 2 +- docs/MQTTAsync/html/globals_enum.html | 2 +- docs/MQTTAsync/html/globals_eval.html | 2 +- docs/MQTTAsync/html/globals_func.html | 2 +- docs/MQTTAsync/html/globals_p.html | 2 +- docs/MQTTAsync/html/globals_type.html | 2 +- docs/MQTTAsync/html/index.html | 6 +- docs/MQTTAsync/html/offline_publish.html | 2 +- docs/MQTTAsync/html/pages.html | 2 +- docs/MQTTAsync/html/publish.html | 60 +- docs/MQTTAsync/html/qos.html | 2 +- docs/MQTTAsync/html/search/all_0.js | 2 +- docs/MQTTAsync/html/search/pages_0.js | 2 +- .../struct_m_q_t_t_async___s_s_l_options.html | 2 +- .../struct_m_q_t_t_async__connect_data.html | 2 +- ...struct_m_q_t_t_async__connect_options.html | 16 +- .../struct_m_q_t_t_async__create_options.html | 2 +- ...uct_m_q_t_t_async__disconnect_options.html | 2 +- .../struct_m_q_t_t_async__failure_data.html | 2 +- .../struct_m_q_t_t_async__failure_data5.html | 2 +- .../struct_m_q_t_t_async__init__options.html | 2 +- .../html/struct_m_q_t_t_async__message.html | 2 +- .../struct_m_q_t_t_async__name_value.html | 2 +- ...truct_m_q_t_t_async__response_options.html | 4 +- .../struct_m_q_t_t_async__success_data.html | 2 +- .../struct_m_q_t_t_async__success_data5.html | 2 +- .../struct_m_q_t_t_async__will_options.html | 2 +- .../struct_m_q_t_t_client__persistence.html | 2 +- .../html/struct_m_q_t_t_len_string.html | 2 +- .../html/struct_m_q_t_t_properties.html | 2 +- .../html/struct_m_q_t_t_property.html | 2 +- .../struct_m_q_t_t_subscribe__options.html | 2 +- docs/MQTTAsync/html/subscribe.html | 48 +- docs/MQTTAsync/html/tracing.html | 2 +- docs/MQTTAsync/html/wildcard.html | 2 +- docs/MQTTAsync/man/man3/MQTTAsync.h.3 | 32 +- .../MQTTAsync/man/man3/MQTTAsync_SSLOptions.3 | 2 +- .../man/man3/MQTTAsync_connectData.3 | 2 +- .../man/man3/MQTTAsync_connectOptions.3 | 22 +- .../man/man3/MQTTAsync_createOptions.3 | 2 +- .../man/man3/MQTTAsync_disconnectOptions.3 | 2 +- .../man/man3/MQTTAsync_failureData.3 | 2 +- .../man/man3/MQTTAsync_failureData5.3 | 2 +- .../man/man3/MQTTAsync_init_options.3 | 2 +- docs/MQTTAsync/man/man3/MQTTAsync_message.3 | 2 +- docs/MQTTAsync/man/man3/MQTTAsync_nameValue.3 | 2 +- .../man/man3/MQTTAsync_responseOptions.3 | 4 +- .../man/man3/MQTTAsync_successData.3 | 2 +- .../man/man3/MQTTAsync_successData5.3 | 2 +- .../man/man3/MQTTAsync_willOptions.3 | 2 +- .../man/man3/MQTTClientPersistence.h.3 | 2 +- .../man/man3/MQTTClient_persistence.3 | 2 +- docs/MQTTAsync/man/man3/MQTTLenString.3 | 2 +- docs/MQTTAsync/man/man3/MQTTProperties.3 | 2 +- docs/MQTTAsync/man/man3/MQTTProperties.h.3 | 2 +- docs/MQTTAsync/man/man3/MQTTProperty.3 | 2 +- docs/MQTTAsync/man/man3/MQTTReasonCodes.h.3 | 2 +- docs/MQTTAsync/man/man3/MQTTSubscribeOpts.h.3 | 2 +- .../man/man3/MQTTSubscribe_options.3 | 2 +- docs/MQTTAsync/man/man3/async.3 | 2 +- docs/MQTTAsync/man/man3/auto_reconnect.3 | 2 +- docs/MQTTAsync/man/man3/callbacks.3 | 2 +- docs/MQTTAsync/man/man3/offline_publish.3 | 2 +- docs/MQTTAsync/man/man3/publish.3 | 2 +- docs/MQTTAsync/man/man3/qos.3 | 2 +- docs/MQTTAsync/man/man3/subscribe.3 | 2 +- docs/MQTTAsync/man/man3/tracing.3 | 2 +- docs/MQTTAsync/man/man3/wildcard.3 | 2 +- docs/MQTTClient/html/_m_q_t_t_client_8h.html | 32 +- .../html/_m_q_t_t_client_8h_source.html | 772 +++++----- .../html/_m_q_t_t_client_persistence_8h.html | 2 +- ..._m_q_t_t_client_persistence_8h_source.html | 2 +- .../html/_m_q_t_t_properties_8h.html | 2 +- .../html/_m_q_t_t_properties_8h_source.html | 2 +- .../html/_m_q_t_t_reason_codes_8h.html | 2 +- .../html/_m_q_t_t_reason_codes_8h_source.html | 2 +- .../html/_m_q_t_t_subscribe_opts_8h.html | 2 +- .../_m_q_t_t_subscribe_opts_8h_source.html | 2 +- docs/MQTTClient/html/annotated.html | 2 +- docs/MQTTClient/html/async.html | 2 +- docs/MQTTClient/html/callbacks.html | 2 +- docs/MQTTClient/html/classes.html | 2 +- docs/MQTTClient/html/files.html | 2 +- docs/MQTTClient/html/functions.html | 2 +- docs/MQTTClient/html/functions_vars.html | 2 +- docs/MQTTClient/html/globals.html | 2 +- docs/MQTTClient/html/globals_defs.html | 2 +- docs/MQTTClient/html/globals_enum.html | 2 +- docs/MQTTClient/html/globals_eval.html | 2 +- docs/MQTTClient/html/globals_func.html | 2 +- docs/MQTTClient/html/globals_p.html | 2 +- docs/MQTTClient/html/globals_type.html | 2 +- docs/MQTTClient/html/index.html | 6 +- docs/MQTTClient/html/pages.html | 2 +- docs/MQTTClient/html/pubasync.html | 26 +- docs/MQTTClient/html/pubsync.html | 26 +- docs/MQTTClient/html/qos.html | 2 +- docs/MQTTClient/html/search/all_9.js | 2 +- docs/MQTTClient/html/search/pages_2.js | 2 +- ...struct_m_q_t_t_client___s_s_l_options.html | 2 +- ...truct_m_q_t_t_client__connect_options.html | 10 +- ...struct_m_q_t_t_client__create_options.html | 2 +- .../struct_m_q_t_t_client__init__options.html | 2 +- .../html/struct_m_q_t_t_client__message.html | 2 +- .../struct_m_q_t_t_client__name_value.html | 2 +- .../struct_m_q_t_t_client__persistence.html | 2 +- .../struct_m_q_t_t_client__will_options.html | 2 +- .../html/struct_m_q_t_t_len_string.html | 2 +- .../html/struct_m_q_t_t_properties.html | 2 +- .../html/struct_m_q_t_t_property.html | 2 +- .../html/struct_m_q_t_t_response.html | 2 +- .../struct_m_q_t_t_subscribe__options.html | 2 +- docs/MQTTClient/html/subasync.html | 20 +- docs/MQTTClient/html/tracing.html | 2 +- docs/MQTTClient/html/wildcard.html | 2 +- docs/MQTTClient/man/man3/MQTTClient.h.3 | 32 +- .../man/man3/MQTTClientPersistence.h.3 | 2 +- .../man/man3/MQTTClient_SSLOptions.3 | 2 +- .../man/man3/MQTTClient_connectOptions.3 | 16 +- .../man/man3/MQTTClient_createOptions.3 | 2 +- .../man/man3/MQTTClient_init_options.3 | 2 +- docs/MQTTClient/man/man3/MQTTClient_message.3 | 2 +- .../man/man3/MQTTClient_nameValue.3 | 2 +- .../man/man3/MQTTClient_persistence.3 | 2 +- .../man/man3/MQTTClient_willOptions.3 | 2 +- docs/MQTTClient/man/man3/MQTTLenString.3 | 2 +- docs/MQTTClient/man/man3/MQTTProperties.3 | 2 +- docs/MQTTClient/man/man3/MQTTProperties.h.3 | 2 +- docs/MQTTClient/man/man3/MQTTProperty.3 | 2 +- docs/MQTTClient/man/man3/MQTTReasonCodes.h.3 | 2 +- docs/MQTTClient/man/man3/MQTTResponse.3 | 2 +- .../MQTTClient/man/man3/MQTTSubscribeOpts.h.3 | 2 +- .../man/man3/MQTTSubscribe_options.3 | 2 +- docs/MQTTClient/man/man3/async.3 | 2 +- docs/MQTTClient/man/man3/callbacks.3 | 2 +- docs/MQTTClient/man/man3/pubasync.3 | 2 +- docs/MQTTClient/man/man3/pubsync.3 | 2 +- docs/MQTTClient/man/man3/qos.3 | 2 +- docs/MQTTClient/man/man3/subasync.3 | 2 +- docs/MQTTClient/man/man3/tracing.3 | 2 +- docs/MQTTClient/man/man3/wildcard.3 | 2 +- docs/MQTTClient_internal/html/Clients_8c.html | 680 ++++----- docs/MQTTClient_internal/html/Heap_8c.html | 2 +- .../html/LinkedList_8c.html | 2 +- docs/MQTTClient_internal/html/Log_8c.html | 2 +- .../html/MQTTClientPersistence_8h.html | 2 +- .../html/MQTTClient_8c.html | 15 +- .../html/MQTTPacketOut_8c.html | 2 +- .../html/MQTTPacket_8c.html | 8 +- .../html/MQTTPersistenceDefault_8c.html | 2 +- .../html/MQTTPersistence_8c.html | 2 +- .../html/MQTTProtocolClient_8c.html | 68 +- ...a163c85710d4936ae368b8b9412440_cgraph.map} | 0 ...a163c85710d4936ae368b8b9412440_cgraph.md5} | 0 ...a163c85710d4936ae368b8b9412440_cgraph.png} | Bin ...f454819a84c7a43009253fabcea3f3_cgraph.map} | 0 ...f454819a84c7a43009253fabcea3f3_cgraph.md5} | 0 ...f454819a84c7a43009253fabcea3f3_cgraph.png} | Bin ...9429577a185297d8797d791b7116a2_cgraph.map} | 0 ...9429577a185297d8797d791b7116a2_cgraph.md5} | 0 ...9429577a185297d8797d791b7116a2_cgraph.png} | Bin .../html/MQTTProtocolOut_8c.html | 2 +- .../html/MQTTVersion_8c.html | 2 +- .../MQTTClient_internal/html/Messages_8c.html | 2 +- .../html/SSLSocket_8c.html | 2 +- .../html/SocketBuffer_8c.html | 2 +- docs/MQTTClient_internal/html/Socket_8c.html | 8 +- docs/MQTTClient_internal/html/Thread_8c.html | 5 +- docs/MQTTClient_internal/html/Tree_8c.html | 2 +- docs/MQTTClient_internal/html/annotated.html | 2 +- docs/MQTTClient_internal/html/classes.html | 2 +- docs/MQTTClient_internal/html/files.html | 2 +- docs/MQTTClient_internal/html/functions.html | 2 +- .../MQTTClient_internal/html/functions_a.html | 2 +- .../MQTTClient_internal/html/functions_b.html | 2 +- .../MQTTClient_internal/html/functions_c.html | 2 +- .../MQTTClient_internal/html/functions_d.html | 2 +- .../MQTTClient_internal/html/functions_e.html | 2 +- .../MQTTClient_internal/html/functions_f.html | 6 +- .../MQTTClient_internal/html/functions_g.html | 2 +- .../MQTTClient_internal/html/functions_h.html | 2 +- .../MQTTClient_internal/html/functions_i.html | 2 +- .../MQTTClient_internal/html/functions_k.html | 2 +- .../MQTTClient_internal/html/functions_l.html | 2 +- .../MQTTClient_internal/html/functions_m.html | 2 +- .../MQTTClient_internal/html/functions_n.html | 2 +- .../MQTTClient_internal/html/functions_o.html | 2 +- .../MQTTClient_internal/html/functions_p.html | 2 +- .../MQTTClient_internal/html/functions_q.html | 2 +- .../MQTTClient_internal/html/functions_r.html | 2 +- .../MQTTClient_internal/html/functions_s.html | 2 +- .../MQTTClient_internal/html/functions_t.html | 2 +- .../MQTTClient_internal/html/functions_u.html | 2 +- .../MQTTClient_internal/html/functions_v.html | 2 +- .../html/functions_vars.html | 2 +- .../html/functions_vars_a.html | 2 +- .../html/functions_vars_b.html | 2 +- .../html/functions_vars_c.html | 2 +- .../html/functions_vars_d.html | 2 +- .../html/functions_vars_e.html | 2 +- .../html/functions_vars_f.html | 6 +- .../html/functions_vars_g.html | 2 +- .../html/functions_vars_h.html | 2 +- .../html/functions_vars_i.html | 2 +- .../html/functions_vars_k.html | 2 +- .../html/functions_vars_l.html | 2 +- .../html/functions_vars_m.html | 2 +- .../html/functions_vars_n.html | 2 +- .../html/functions_vars_o.html | 2 +- .../html/functions_vars_p.html | 2 +- .../html/functions_vars_q.html | 2 +- .../html/functions_vars_r.html | 2 +- .../html/functions_vars_s.html | 2 +- .../html/functions_vars_t.html | 2 +- .../html/functions_vars_u.html | 2 +- .../html/functions_vars_v.html | 2 +- .../html/functions_vars_w.html | 2 +- .../MQTTClient_internal/html/functions_w.html | 2 +- docs/MQTTClient_internal/html/globals.html | 2 +- docs/MQTTClient_internal/html/globals_a.html | 2 +- docs/MQTTClient_internal/html/globals_b.html | 2 +- docs/MQTTClient_internal/html/globals_c.html | 2 +- docs/MQTTClient_internal/html/globals_d.html | 2 +- .../html/globals_defs.html | 2 +- docs/MQTTClient_internal/html/globals_f.html | 2 +- .../html/globals_func.html | 2 +- .../html/globals_func_f.html | 2 +- .../html/globals_func_h.html | 2 +- .../html/globals_func_i.html | 2 +- .../html/globals_func_l.html | 2 +- .../html/globals_func_m.html | 8 +- .../html/globals_func_p.html | 2 +- .../html/globals_func_r.html | 2 +- .../html/globals_func_s.html | 2 +- .../html/globals_func_t.html | 2 +- .../html/globals_func_u.html | 2 +- .../html/globals_func_w.html | 2 +- docs/MQTTClient_internal/html/globals_h.html | 2 +- docs/MQTTClient_internal/html/globals_i.html | 2 +- docs/MQTTClient_internal/html/globals_l.html | 2 +- docs/MQTTClient_internal/html/globals_m.html | 8 +- docs/MQTTClient_internal/html/globals_n.html | 2 +- docs/MQTTClient_internal/html/globals_p.html | 2 +- docs/MQTTClient_internal/html/globals_q.html | 2 +- docs/MQTTClient_internal/html/globals_r.html | 2 +- docs/MQTTClient_internal/html/globals_s.html | 2 +- docs/MQTTClient_internal/html/globals_t.html | 2 +- .../html/globals_type.html | 2 +- docs/MQTTClient_internal/html/globals_u.html | 2 +- docs/MQTTClient_internal/html/globals_v.html | 2 +- .../html/globals_vars.html | 2 +- docs/MQTTClient_internal/html/globals_w.html | 2 +- .../html/graph_legend.html | 2 +- docs/MQTTClient_internal/html/index.html | 2 +- docs/MQTTClient_internal/html/search/all_6.js | 2 +- docs/MQTTClient_internal/html/search/all_c.js | 8 +- .../html/search/functions_5.js | 6 +- .../html/search/variables_6.js | 2 +- .../html/search/variables_c.js | 2 +- docs/MQTTClient_internal/html/structAck.html | 2 +- .../html/structAckRequest.html | 2 +- .../html/structClientStates.html | 2 +- .../html/structClients.html | 2 +- .../html/structConnack.html | 2 +- .../html/structConnect.html | 2 +- docs/MQTTClient_internal/html/structList.html | 2 +- .../html/structListElementStruct.html | 2 +- .../html/structLog__nameValue.html | 2 +- .../html/structMQTTAsync__SSLOptions.html | 2 +- .../html/structMQTTAsync__command.html | 2 +- .../html/structMQTTAsync__connectData.html | 2 +- .../html/structMQTTAsync__connectOptions.html | 39 +- .../html/structMQTTAsync__createOptions.html | 2 +- .../structMQTTAsync__disconnectOptions.html | 2 +- .../html/structMQTTAsync__failureData.html | 2 +- .../html/structMQTTAsync__failureData5.html | 2 +- .../html/structMQTTAsync__init__options.html | 2 +- .../html/structMQTTAsync__message.html | 2 +- .../html/structMQTTAsync__nameValue.html | 2 +- .../html/structMQTTAsync__queuedCommand.html | 2 +- .../structMQTTAsync__responseOptions.html | 4 +- .../html/structMQTTAsync__struct.html | 2 +- .../html/structMQTTAsync__successData.html | 2 +- .../html/structMQTTAsync__successData5.html | 2 +- .../html/structMQTTAsync__willOptions.html | 2 +- .../html/structMQTTClient__SSLOptions.html | 2 +- .../structMQTTClient__connectOptions.html | 10 +- .../html/structMQTTClient__createOptions.html | 2 +- .../html/structMQTTClient__init__options.html | 2 +- .../html/structMQTTClient__message.html | 2 +- .../html/structMQTTClient__nameValue.html | 2 +- .../html/structMQTTClient__persistence.html | 2 +- .../html/structMQTTClient__willOptions.html | 2 +- .../html/structMQTTClients.html | 2 +- .../html/structMQTTLenString.html | 2 +- .../html/structMQTTPacket.html | 2 +- .../html/structMQTTPersistence__message.html | 2 +- .../html/structMQTTPersistence__qEntry.html | 2 +- .../html/structMQTTProperties.html | 2 +- .../html/structMQTTProperty.html | 2 +- .../html/structMQTTProtocol.html | 2 +- .../html/structMQTTResponse.html | 2 +- .../html/structMQTTSubscribe__options.html | 2 +- .../html/structMessages.html | 2 +- .../html/structNodeStruct.html | 2 +- .../html/structPacketBuffers.html | 2 +- .../html/structPublications.html | 2 +- .../html/structPublish.html | 2 +- .../html/structSHA__CTX__S.html | 2 +- .../html/structSockets.html | 22 +- .../html/structSuback.html | 2 +- docs/MQTTClient_internal/html/structTree.html | 2 +- .../html/structUnsuback.html | 2 +- .../html/structcond__type__struct.html | 2 +- .../html/structframeData.html | 2 +- .../html/structheap__info.html | 2 +- .../html/structnameToType.html | 2 +- .../html/structnetworkHandles.html | 2 +- .../html/structpending__write.html | 2 +- .../html/structpending__writes.html | 2 +- .../html/structprops__rc__parms.html | 2 +- .../html/structqEntry.html | 2 +- .../html/structsocket__queue.html | 2 +- .../html/structstackEntry.html | 2 +- .../html/structstorageElement.html | 2 +- .../html/structthreadEntry.html | 2 +- .../html/structtraceEntry.html | 2 +- .../html/structtrace__settings__type.html | 2 +- .../html/structwillMessages.html | 2 +- .../html/structws__frame.html | 2 +- .../MQTTClient_internal/html/unionHeader.html | 2 +- docs/MQTTClient_internal/html/utf-8_8c.html | 2 +- 351 files changed, 2064 insertions(+), 1877 deletions(-) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.map => MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.map} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.md5 => MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.md5} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.png => MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.png} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.map => MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.map} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.md5 => MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.md5} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.png => MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.png} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.map => MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.map} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.md5 => MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.md5} (100%) rename docs/MQTTClient_internal/html/{MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.png => MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.png} (100%) diff --git a/docs/MQTTAsync/html/_m_q_t_t_async_8h.html b/docs/MQTTAsync/html/_m_q_t_t_async_8h.html index 3349d4e48..0e0b46282 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_async_8h.html +++ b/docs/MQTTAsync/html/_m_q_t_t_async_8h.html @@ -546,7 +546,13 @@

-

Return code: protocol prefix in serverURI should be tcp://, ssl://, ws:// or wss:// The TLS enabled prefixes (ssl, wss) are only valid if the TLS version of the library is linked with.

+

Return code: protocol prefix in serverURI should be:

    +
  • tcp:// or mqtt:// - Insecure TCP
  • +
  • ssl:// or mqtts:// - Encrypted SSL/TLS
  • +
  • ws:// - Insecure websockets
  • +
  • wss:// - Secure web sockets
  • +
+

The TLS enabled prefixes (ssl, mqtts, wss) are only valid if the TLS version of the library is linked with.

@@ -921,7 +927,8 @@

Value: +

Initializer for connect options for MQTT 3.1.1 non-WebSocket connections

+ @@ -937,7 +944,8 @@

Value: +

Initializer for connect options for MQTT 5.0 non-WebSocket connections

+ @@ -953,7 +961,8 @@

Value: +

Initializer for connect options for MQTT 3.1.1 WebSockets connections. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts.

+ @@ -969,7 +978,8 @@

Value: +

Initializer for connect options for MQTT 5.0 WebSockets connections. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts.

+ @@ -1856,7 +1866,12 @@

MQTTAsync_destroy().

Parameters
- +
handleA pointer to an MQTTAsync handle. The handle is populated with a valid client reference following a successful return from this function.
serverURIA null-terminated string specifying the server to which the client will connect. It takes the form protocol://host:port. protocol must be tcp, ssl, ws or wss. The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with. For host, you can specify either an IP address or a host name. For instance, to connect to a server running on the local machines with the default MQTT port, specify tcp://localhost:1883.
serverURIA null-terminated string specifying the server to which the client will connect. It takes the form protocol://host:port where protocol must be:
+ tcp:// or mqtt:// - Insecure TCP
+ ssl:// or mqtts:// - Encrypted SSL/TLS
+ ws:// - Insecure websockets
+ wss:// - Secure web sockets
+ The TLS enabled prefixes (ssl, mqtts, wss) are only valid if a TLS version of the library is linked with. For host, you can specify either an IP address or a host name. For instance, to connect to a server running on the local machines with the default MQTT port, specify tcp://localhost:1883.
clientIdThe client identifier passed to the server when the client connects to it. It is a null-terminated UTF-8 encoded string.
persistence_typeThe type of persistence to be used by the client:
MQTTCLIENT_PERSISTENCE_NONE: Use in-memory persistence. If the device or system on which the client is running fails or is switched off, the current state of any in-flight messages is lost and some messages may not be delivered even at QoS1 and QoS2.
@@ -2647,11 +2662,11 @@

@ MQTTREASONCODE_SUCCESS
Definition: MQTTReasonCodes.h:38
-
#define MQTTVERSION_5
Definition: MQTTAsync.h:216
-
#define MQTTVERSION_DEFAULT
Definition: MQTTAsync.h:204
+
#define MQTTVERSION_5
Definition: MQTTAsync.h:221
+
#define MQTTVERSION_DEFAULT
Definition: MQTTAsync.h:209
diff --git a/docs/MQTTAsync/html/_m_q_t_t_async_8h_source.html b/docs/MQTTAsync/html/_m_q_t_t_async_8h_source.html index 417e9f5a0..61ac8b798 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_async_8h_source.html +++ b/docs/MQTTAsync/html/_m_q_t_t_async_8h_source.html @@ -145,690 +145,689 @@
168 
171 #define MQTTASYNC_SSL_NOT_SUPPORTED -13
172 
-
177 #define MQTTASYNC_BAD_PROTOCOL -14
-
178 
-
181 #define MQTTASYNC_BAD_MQTT_OPTION -15
-
182 
-
185 #define MQTTASYNC_WRONG_MQTT_VERSION -16
-
186 
-
189 #define MQTTASYNC_0_LEN_WILL_TOPIC -17
-
190 /*
-
191  * Return code: connect or disconnect command ignored because there is already a connect or disconnect
-
192  * command at the head of the list waiting to be processed. Use the onSuccess/onFailure callbacks to wait
-
193  * for the previous connect or disconnect command to be complete.
-
194  */
-
195 #define MQTTASYNC_COMMAND_IGNORED -18
-
196  /*
-
197  * Return code: maxBufferedMessages in the connect options must be >= 0
-
198  */
-
199  #define MQTTASYNC_MAX_BUFFERED -19
-
200 
-
204 #define MQTTVERSION_DEFAULT 0
+
182 #define MQTTASYNC_BAD_PROTOCOL -14
+
183 
+
186 #define MQTTASYNC_BAD_MQTT_OPTION -15
+
187 
+
190 #define MQTTASYNC_WRONG_MQTT_VERSION -16
+
191 
+
194 #define MQTTASYNC_0_LEN_WILL_TOPIC -17
+
195 /*
+
196  * Return code: connect or disconnect command ignored because there is already a connect or disconnect
+
197  * command at the head of the list waiting to be processed. Use the onSuccess/onFailure callbacks to wait
+
198  * for the previous connect or disconnect command to be complete.
+
199  */
+
200 #define MQTTASYNC_COMMAND_IGNORED -18
+
201  /*
+
202  * Return code: maxBufferedMessages in the connect options must be >= 0
+
203  */
+
204  #define MQTTASYNC_MAX_BUFFERED -19
205 
-
208 #define MQTTVERSION_3_1 3
-
209 
-
212 #define MQTTVERSION_3_1_1 4
-
213 
-
216 #define MQTTVERSION_5 5
-
217 
-
220 #define MQTT_BAD_SUBSCRIBE 0x80
-
221 
+
209 #define MQTTVERSION_DEFAULT 0
+
210 
+
213 #define MQTTVERSION_3_1 3
+
214 
+
217 #define MQTTVERSION_3_1_1 4
+
218 
+
221 #define MQTTVERSION_5 5
222 
-
226 typedef struct
-
227 {
-
229  char struct_id[4];
- - - -
235 
-
236 #define MQTTAsync_init_options_initializer { {'M', 'Q', 'T', 'G'}, 0, 0 }
-
237 
-
242 LIBMQTT_API void MQTTAsync_global_init(MQTTAsync_init_options* inits);
-
243 
-
248 typedef void* MQTTAsync;
-
258 typedef int MQTTAsync_token;
-
259 
-
266 typedef struct
-
267 {
-
269  char struct_id[4];
- - -
276  void* payload;
-
290  int qos;
-
309  int retained;
-
316  int dup;
-
322  int msgid;
- - -
328 
-
329 #define MQTTAsync_message_initializer { {'M', 'Q', 'T', 'M'}, 1, 0, NULL, 0, 0, 0, 0, MQTTProperties_initializer }
-
330 
-
364 typedef int MQTTAsync_messageArrived(void* context, char* topicName, int topicLen, MQTTAsync_message* message);
-
365 
-
387 typedef void MQTTAsync_deliveryComplete(void* context, MQTTAsync_token token);
-
388 
-
407 typedef void MQTTAsync_connectionLost(void* context, char* cause);
-
408 
-
409 
-
425 typedef void MQTTAsync_connected(void* context, char* cause);
-
426 
-
439 typedef void MQTTAsync_disconnected(void* context, MQTTProperties* properties,
-
440  enum MQTTReasonCodes reasonCode);
-
441 
-
457 LIBMQTT_API int MQTTAsync_setDisconnected(MQTTAsync handle, void* context, MQTTAsync_disconnected* co);
-
458 
-
460 typedef struct
-
461 {
-
463  char struct_id[4];
- -
472  const char* username;
-
478  struct {
-
479  int len;
-
480  const void* data;
-
481  } binarypwd;
- -
483 
-
484 #define MQTTAsync_connectData_initializer {{'M', 'Q', 'C', 'D'}, 0, NULL, {0, NULL}}
-
485 
-
492 typedef int MQTTAsync_updateConnectOptions(void* context, MQTTAsync_connectData* data);
-
493 
-
503 LIBMQTT_API int MQTTAsync_setUpdateConnectOptions(MQTTAsync handle, void* context, MQTTAsync_updateConnectOptions* co);
-
504 
-
514 LIBMQTT_API int MQTTAsync_setBeforePersistenceWrite(MQTTAsync handle, void* context, MQTTPersistence_beforeWrite* co);
-
515 
-
516 
-
526 LIBMQTT_API int MQTTAsync_setAfterPersistenceRead(MQTTAsync handle, void* context, MQTTPersistence_afterRead* co);
-
527 
-
528 
-
530 typedef struct
-
531 {
- -
535  int code;
-
537  const char *message;
- -
539 
-
540 
-
542 typedef struct
-
543 {
-
545  char struct_id[4];
- - -
551  enum MQTTReasonCodes reasonCode;
- -
555  int code;
-
557  const char *message;
- - -
561 
-
562 #define MQTTAsync_failureData5_initializer {{'M', 'Q', 'F', 'D'}, 0, 0, MQTTREASONCODE_SUCCESS, MQTTProperties_initializer, 0, NULL, 0}
-
563 
-
565 typedef struct
-
566 {
- -
570  union
-
571  {
-
574  int qos;
-
577  int* qosList;
-
579  struct
-
580  {
- - -
583  } pub;
-
584  /* For connect, the server connected to, MQTT version used, and sessionPresent flag */
-
585  struct
-
586  {
-
587  char* serverURI;
- - -
590  } connect;
-
591  } alt;
- -
593 
-
594 
-
596 typedef struct
-
597 {
-
598  char struct_id[4];
- - -
602  enum MQTTReasonCodes reasonCode;
- -
605  union
-
606  {
-
608  struct
-
609  {
- - -
612  } sub;
-
614  struct
-
615  {
- - -
618  } pub;
-
619  /* For connect, the server connected to, MQTT version used, and sessionPresent flag */
-
620  struct
-
621  {
-
622  char* serverURI;
- - -
625  } connect;
-
627  struct
-
628  {
-
629  int reasonCodeCount;
-
630  enum MQTTReasonCodes* reasonCodes;
-
631  } unsub;
-
632  } alt;
- -
634 
-
635 #define MQTTAsync_successData5_initializer {{'M', 'Q', 'S', 'D'}, 0, 0, MQTTREASONCODE_SUCCESS, MQTTProperties_initializer, {.sub={0,0}}}
-
636 
-
650 typedef void MQTTAsync_onSuccess(void* context, MQTTAsync_successData* response);
-
651 
-
666 typedef void MQTTAsync_onSuccess5(void* context, MQTTAsync_successData5* response);
-
667 
-
681 typedef void MQTTAsync_onFailure(void* context, MQTTAsync_failureData* response);
-
682 
-
696 typedef void MQTTAsync_onFailure5(void* context, MQTTAsync_failureData5* response);
-
697 
- -
704 {
-
706  char struct_id[4];
- - - -
727  void* context;
- - - - -
750  /*
-
751  * MQTT V5 subscribe options, when used with subscribe only.
-
752  */
- -
754  /*
-
755  * MQTT V5 subscribe option count, when used with subscribeMany only.
-
756  * The number of entries in the subscribe_options_list array.
-
757  */
- -
759  /*
-
760  * MQTT V5 subscribe option array, when used with subscribeMany only.
-
761  */
- - -
764 
-
765 #define MQTTAsync_responseOptions_initializer { {'M', 'Q', 'T', 'R'}, 1, NULL, NULL, 0, 0, NULL, NULL, MQTTProperties_initializer, MQTTSubscribe_options_initializer, 0, NULL}
-
766 
- -
769 #define MQTTAsync_callOptions_initializer MQTTAsync_responseOptions_initializer
+
225 #define MQTT_BAD_SUBSCRIBE 0x80
+
226 
+
227 
+
231 typedef struct
+
232 {
+
234  char struct_id[4];
+ + + +
240 
+
241 #define MQTTAsync_init_options_initializer { {'M', 'Q', 'T', 'G'}, 0, 0 }
+
242 
+
247 LIBMQTT_API void MQTTAsync_global_init(MQTTAsync_init_options* inits);
+
248 
+
253 typedef void* MQTTAsync;
+
263 typedef int MQTTAsync_token;
+
264 
+
271 typedef struct
+
272 {
+
274  char struct_id[4];
+ + +
281  void* payload;
+
295  int qos;
+
314  int retained;
+
321  int dup;
+
327  int msgid;
+ + +
333 
+
334 #define MQTTAsync_message_initializer { {'M', 'Q', 'T', 'M'}, 1, 0, NULL, 0, 0, 0, 0, MQTTProperties_initializer }
+
335 
+
369 typedef int MQTTAsync_messageArrived(void* context, char* topicName, int topicLen, MQTTAsync_message* message);
+
370 
+
392 typedef void MQTTAsync_deliveryComplete(void* context, MQTTAsync_token token);
+
393 
+
412 typedef void MQTTAsync_connectionLost(void* context, char* cause);
+
413 
+
414 
+
430 typedef void MQTTAsync_connected(void* context, char* cause);
+
431 
+
444 typedef void MQTTAsync_disconnected(void* context, MQTTProperties* properties,
+
445  enum MQTTReasonCodes reasonCode);
+
446 
+
462 LIBMQTT_API int MQTTAsync_setDisconnected(MQTTAsync handle, void* context, MQTTAsync_disconnected* co);
+
463 
+
465 typedef struct
+
466 {
+
468  char struct_id[4];
+ +
477  const char* username;
+
483  struct {
+
484  int len;
+
485  const void* data;
+
486  } binarypwd;
+ +
488 
+
489 #define MQTTAsync_connectData_initializer {{'M', 'Q', 'C', 'D'}, 0, NULL, {0, NULL}}
+
490 
+
497 typedef int MQTTAsync_updateConnectOptions(void* context, MQTTAsync_connectData* data);
+
498 
+
508 LIBMQTT_API int MQTTAsync_setUpdateConnectOptions(MQTTAsync handle, void* context, MQTTAsync_updateConnectOptions* co);
+
509 
+
519 LIBMQTT_API int MQTTAsync_setBeforePersistenceWrite(MQTTAsync handle, void* context, MQTTPersistence_beforeWrite* co);
+
520 
+
521 
+
531 LIBMQTT_API int MQTTAsync_setAfterPersistenceRead(MQTTAsync handle, void* context, MQTTPersistence_afterRead* co);
+
532 
+
533 
+
535 typedef struct
+
536 {
+ +
540  int code;
+
542  const char *message;
+ +
544 
+
545 
+
547 typedef struct
+
548 {
+
550  char struct_id[4];
+ + +
556  enum MQTTReasonCodes reasonCode;
+ +
560  int code;
+
562  const char *message;
+ + +
566 
+
567 #define MQTTAsync_failureData5_initializer {{'M', 'Q', 'F', 'D'}, 0, 0, MQTTREASONCODE_SUCCESS, MQTTProperties_initializer, 0, NULL, 0}
+
568 
+
570 typedef struct
+
571 {
+ +
575  union
+
576  {
+
579  int qos;
+
582  int* qosList;
+
584  struct
+
585  {
+ + +
588  } pub;
+
589  /* For connect, the server connected to, MQTT version used, and sessionPresent flag */
+
590  struct
+
591  {
+
592  char* serverURI;
+ + +
595  } connect;
+
596  } alt;
+ +
598 
+
599 
+
601 typedef struct
+
602 {
+
603  char struct_id[4];
+ + +
607  enum MQTTReasonCodes reasonCode;
+ +
610  union
+
611  {
+
613  struct
+
614  {
+ + +
617  } sub;
+
619  struct
+
620  {
+ + +
623  } pub;
+
624  /* For connect, the server connected to, MQTT version used, and sessionPresent flag */
+
625  struct
+
626  {
+
627  char* serverURI;
+ + +
630  } connect;
+
632  struct
+
633  {
+
634  int reasonCodeCount;
+
635  enum MQTTReasonCodes* reasonCodes;
+
636  } unsub;
+
637  } alt;
+ +
639 
+
640 #define MQTTAsync_successData5_initializer {{'M', 'Q', 'S', 'D'}, 0, 0, MQTTREASONCODE_SUCCESS, MQTTProperties_initializer, {.sub={0,0}}}
+
641 
+
655 typedef void MQTTAsync_onSuccess(void* context, MQTTAsync_successData* response);
+
656 
+
671 typedef void MQTTAsync_onSuccess5(void* context, MQTTAsync_successData5* response);
+
672 
+
686 typedef void MQTTAsync_onFailure(void* context, MQTTAsync_failureData* response);
+
687 
+
701 typedef void MQTTAsync_onFailure5(void* context, MQTTAsync_failureData5* response);
+
702 
+ +
709 {
+
711  char struct_id[4];
+ + + +
732  void* context;
+ + + + +
756  /*
+
757  * MQTT V5 subscribe options, when used with subscribe only.
+
758  */
+ +
760  /*
+
761  * MQTT V5 subscribe option count, when used with subscribeMany only.
+
762  * The number of entries in the subscribe_options_list array.
+
763  */
+ +
765  /*
+
766  * MQTT V5 subscribe option array, when used with subscribeMany only.
+
767  */
+ +
770 
-
800 LIBMQTT_API int MQTTAsync_setCallbacks(MQTTAsync handle, void* context, MQTTAsync_connectionLost* cl,
- -
802 
-
823 LIBMQTT_API int MQTTAsync_setConnectionLostCallback(MQTTAsync handle, void* context,
- -
825 
-
847 LIBMQTT_API int MQTTAsync_setMessageArrivedCallback(MQTTAsync handle, void* context,
- -
849 
-
869 LIBMQTT_API int MQTTAsync_setDeliveryCompleteCallback(MQTTAsync handle, void* context,
- -
871 
-
884 LIBMQTT_API int MQTTAsync_setConnected(MQTTAsync handle, void* context, MQTTAsync_connected* co);
-
885 
-
886 
-
895 LIBMQTT_API int MQTTAsync_reconnect(MQTTAsync handle);
-
896 
-
897 
-
942 LIBMQTT_API int MQTTAsync_create(MQTTAsync* handle, const char* serverURI, const char* clientId,
-
943  int persistence_type, void* persistence_context);
-
944 
-
946 typedef struct
-
947 {
-
949  char struct_id[4];
- - - - - -
972  /*
-
973  * When the maximum number of buffered messages is reached, delete the oldest rather than the newest.
-
974  */
- -
976  /*
-
977  * Restore messages from persistence on create - or clear it.
-
978  */
- -
980  /*
-
981  * Persist QoS0 publish commands - an option to not persist them.
-
982  */
- - -
985 
-
986 #define MQTTAsync_createOptions_initializer { {'M', 'Q', 'C', 'O'}, 2, 0, 100, MQTTVERSION_DEFAULT, 0, 0, 1, 1}
-
987 
-
988 #define MQTTAsync_createOptions_initializer5 { {'M', 'Q', 'C', 'O'}, 2, 0, 100, MQTTVERSION_5, 0, 0, 1, 1}
-
989 
-
990 
-
991 LIBMQTT_API int MQTTAsync_createWithOptions(MQTTAsync* handle, const char* serverURI, const char* clientId,
-
992  int persistence_type, void* persistence_context, MQTTAsync_createOptions* options);
-
993 
-
1006 typedef struct
-
1007 {
-
1009  char struct_id[4];
- -
1015  const char* topicName;
-
1017  const char* message;
- -
1026  int qos;
-
1028  struct
-
1029  {
-
1030  int len;
-
1031  const void* data;
-
1032  } payload;
- -
1034 
-
1035 #define MQTTAsync_willOptions_initializer { {'M', 'Q', 'T', 'W'}, 1, NULL, NULL, 0, 0, { 0, NULL } }
-
1036 
-
1037 #define MQTT_SSL_VERSION_DEFAULT 0
-
1038 #define MQTT_SSL_VERSION_TLS_1_0 1
-
1039 #define MQTT_SSL_VERSION_TLS_1_1 2
-
1040 #define MQTT_SSL_VERSION_TLS_1_2 3
-
1041 
-
1054 typedef struct
-
1055 {
-
1057  char struct_id[4];
-
1058 
- -
1067 
-
1069  const char* trustStore;
-
1070 
-
1074  const char* keyStore;
-
1075 
-
1079  const char* privateKey;
-
1080 
-
1082  const char* privateKeyPassword;
-
1083 
-
1092  const char* enabledCipherSuites;
-
1093 
- -
1096 
- -
1102 
-
1108  int verify;
-
1109 
-
1115  const char* CApath;
+
771 #define MQTTAsync_responseOptions_initializer { {'M', 'Q', 'T', 'R'}, 1, NULL, NULL, 0, 0, NULL, NULL, MQTTProperties_initializer, MQTTSubscribe_options_initializer, 0, NULL}
+
772 
+ +
775 #define MQTTAsync_callOptions_initializer MQTTAsync_responseOptions_initializer
+
776 
+
806 LIBMQTT_API int MQTTAsync_setCallbacks(MQTTAsync handle, void* context, MQTTAsync_connectionLost* cl,
+ +
808 
+
829 LIBMQTT_API int MQTTAsync_setConnectionLostCallback(MQTTAsync handle, void* context,
+ +
831 
+
853 LIBMQTT_API int MQTTAsync_setMessageArrivedCallback(MQTTAsync handle, void* context,
+ +
855 
+
875 LIBMQTT_API int MQTTAsync_setDeliveryCompleteCallback(MQTTAsync handle, void* context,
+ +
877 
+
890 LIBMQTT_API int MQTTAsync_setConnected(MQTTAsync handle, void* context, MQTTAsync_connected* co);
+
891 
+
892 
+
901 LIBMQTT_API int MQTTAsync_reconnect(MQTTAsync handle);
+
902 
+
903 
+
956 LIBMQTT_API int MQTTAsync_create(MQTTAsync* handle, const char* serverURI, const char* clientId,
+
957  int persistence_type, void* persistence_context);
+
958 
+
960 typedef struct
+
961 {
+
963  char struct_id[4];
+ + + + + +
986  /*
+
987  * When the maximum number of buffered messages is reached, delete the oldest rather than the newest.
+
988  */
+ +
990  /*
+
991  * Restore messages from persistence on create - or clear it.
+
992  */
+ +
994  /*
+
995  * Persist QoS0 publish commands - an option to not persist them.
+
996  */
+ + +
999 
+
1000 #define MQTTAsync_createOptions_initializer { {'M', 'Q', 'C', 'O'}, 2, 0, 100, MQTTVERSION_DEFAULT, 0, 0, 1, 1}
+
1001 
+
1002 #define MQTTAsync_createOptions_initializer5 { {'M', 'Q', 'C', 'O'}, 2, 0, 100, MQTTVERSION_5, 0, 0, 1, 1}
+
1003 
+
1004 
+
1005 LIBMQTT_API int MQTTAsync_createWithOptions(MQTTAsync* handle, const char* serverURI, const char* clientId,
+
1006  int persistence_type, void* persistence_context, MQTTAsync_createOptions* options);
+
1007 
+
1020 typedef struct
+
1021 {
+
1023  char struct_id[4];
+ +
1029  const char* topicName;
+
1031  const char* message;
+ +
1040  int qos;
+
1042  struct
+
1043  {
+
1044  int len;
+
1045  const void* data;
+
1046  } payload;
+ +
1048 
+
1049 #define MQTTAsync_willOptions_initializer { {'M', 'Q', 'T', 'W'}, 1, NULL, NULL, 0, 0, { 0, NULL } }
+
1050 
+
1051 #define MQTT_SSL_VERSION_DEFAULT 0
+
1052 #define MQTT_SSL_VERSION_TLS_1_0 1
+
1053 #define MQTT_SSL_VERSION_TLS_1_1 2
+
1054 #define MQTT_SSL_VERSION_TLS_1_2 3
+
1055 
+
1068 typedef struct
+
1069 {
+
1071  char struct_id[4];
+
1072 
+ +
1081 
+
1083  const char* trustStore;
+
1084 
+
1088  const char* keyStore;
+
1089 
+
1093  const char* privateKey;
+
1094 
+
1096  const char* privateKeyPassword;
+
1097 
+
1106  const char* enabledCipherSuites;
+
1107 
+ +
1110 
+
1116 
-
1121  int (*ssl_error_cb) (const char *str, size_t len, void *u);
-
1122 
- -
1128 
-
1134  unsigned int (*ssl_psk_cb) (const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u);
-
1135 
- -
1141 
- -
1148 
-
1156  const unsigned char *protos;
-
1157 
-
1162  unsigned int protos_len;
- -
1164 
-
1165 #define MQTTAsync_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 5, NULL, NULL, NULL, NULL, NULL, 1, MQTT_SSL_VERSION_DEFAULT, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0 }
-
1166 
-
1168 typedef struct
-
1169 {
-
1170  const char* name;
-
1171  const char* value;
- -
1173 
-
1179 typedef struct
-
1180 {
-
1182  char struct_id[4];
- - - - - -
1242  const char* username;
-
1248  const char* password;
- - - - - -
1283  void* context;
- -
1299  char* const* serverURIs;
- - - - -
1322  struct {
-
1323  int len;
-
1324  const void* data;
-
1325  } binarypwd;
-
1326  /*
-
1327  * MQTT V5 clean start flag. Only clears state at the beginning of the session.
-
1328  */
- - - - - - -
1357  const char* httpProxy;
-
1361  const char* httpsProxy;
- -
1363 
-
1364 
-
1365 #define MQTTAsync_connectOptions_initializer { {'M', 'Q', 'T', 'C'}, 8, 60, 1, 65535, NULL, NULL, NULL, 30, 0,\
-
1366 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
-
1367 
-
1368 #define MQTTAsync_connectOptions_initializer5 { {'M', 'Q', 'T', 'C'}, 8, 60, 0, 65535, NULL, NULL, NULL, 30, 0,\
-
1369 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_5, 0, 1, 60, {0, NULL}, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
-
1370 
-
1371 #define MQTTAsync_connectOptions_initializer_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 1, 65535, NULL, NULL, NULL, 30, 0,\
-
1372 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
-
1373 
-
1374 #define MQTTAsync_connectOptions_initializer5_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 0, 65535, NULL, NULL, NULL, 30, 0,\
-
1375 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_5, 0, 1, 60, {0, NULL}, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
-
1376 
-
1377 
-
1398 LIBMQTT_API int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions* options);
-
1399 
-
1401 typedef struct
-
1402 {
-
1404  char struct_id[4];
- -
1411  int timeout;
- - -
1429  void* context;
- -
1437  enum MQTTReasonCodes reasonCode;
- - - -
1451 
-
1452 #define MQTTAsync_disconnectOptions_initializer { {'M', 'Q', 'T', 'D'}, 0, 0, NULL, NULL, NULL,\
-
1453  MQTTProperties_initializer, MQTTREASONCODE_SUCCESS, NULL, NULL }
-
1454 
-
1455 #define MQTTAsync_disconnectOptions_initializer5 { {'M', 'Q', 'T', 'D'}, 1, 0, NULL, NULL, NULL,\
-
1456  MQTTProperties_initializer, MQTTREASONCODE_SUCCESS, NULL, NULL }
-
1457 
-
1476 LIBMQTT_API int MQTTAsync_disconnect(MQTTAsync handle, const MQTTAsync_disconnectOptions* options);
+
1122  int verify;
+
1123 
+
1129  const char* CApath;
+
1130 
+
1135  int (*ssl_error_cb) (const char *str, size_t len, void *u);
+
1136 
+ +
1142 
+
1148  unsigned int (*ssl_psk_cb) (const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u);
+
1149 
+ +
1155 
+ +
1162 
+
1170  const unsigned char *protos;
+
1171 
+
1176  unsigned int protos_len;
+ +
1178 
+
1179 #define MQTTAsync_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 5, NULL, NULL, NULL, NULL, NULL, 1, MQTT_SSL_VERSION_DEFAULT, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0 }
+
1180 
+
1182 typedef struct
+
1183 {
+
1184  const char* name;
+
1185  const char* value;
+ +
1187 
+
1198 typedef struct
+
1199 {
+
1201  char struct_id[4];
+ + + + + +
1261  const char* username;
+
1267  const char* password;
+ + + + + +
1302  void* context;
+ +
1318  char* const* serverURIs;
+ + + + +
1341  struct {
+
1342  int len;
+
1343  const void* data;
+
1344  } binarypwd;
+
1345  /*
+
1346  * MQTT V5 clean start flag. Only clears state at the beginning of the session.
+
1347  */
+ + + + + + +
1376  const char* httpProxy;
+
1380  const char* httpsProxy;
+ +
1382 
+
1384 #define MQTTAsync_connectOptions_initializer { {'M', 'Q', 'T', 'C'}, 8, 60, 1, 65535, NULL, NULL, NULL, 30, 0,\
+
1385 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
+
1386 
+
1388 #define MQTTAsync_connectOptions_initializer5 { {'M', 'Q', 'T', 'C'}, 8, 60, 0, 65535, NULL, NULL, NULL, 30, 0,\
+
1389 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_5, 0, 1, 60, {0, NULL}, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
+
1390 
+
1394 #define MQTTAsync_connectOptions_initializer_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 1, 65535, NULL, NULL, NULL, 30, 0,\
+
1395 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
+
1396 
+
1400 #define MQTTAsync_connectOptions_initializer5_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 0, 65535, NULL, NULL, NULL, 30, 0,\
+
1401 NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_5, 0, 1, 60, {0, NULL}, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
+
1402 
+
1403 
+
1424 LIBMQTT_API int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions* options);
+
1425 
+
1427 typedef struct
+
1428 {
+
1430  char struct_id[4];
+ +
1437  int timeout;
+ + +
1455  void* context;
+ +
1463  enum MQTTReasonCodes reasonCode;
+ + +
1477 
-
1478 
-
1486 LIBMQTT_API int MQTTAsync_isConnected(MQTTAsync handle);
-
1487 
-
1488 
-
1503 LIBMQTT_API int MQTTAsync_subscribe(MQTTAsync handle, const char* topic, int qos, MQTTAsync_responseOptions* response);
+
1478 #define MQTTAsync_disconnectOptions_initializer { {'M', 'Q', 'T', 'D'}, 0, 0, NULL, NULL, NULL,\
+
1479  MQTTProperties_initializer, MQTTREASONCODE_SUCCESS, NULL, NULL }
+
1480 
+
1481 #define MQTTAsync_disconnectOptions_initializer5 { {'M', 'Q', 'T', 'D'}, 1, 0, NULL, NULL, NULL,\
+
1482  MQTTProperties_initializer, MQTTREASONCODE_SUCCESS, NULL, NULL }
+
1483 
+
1502 LIBMQTT_API int MQTTAsync_disconnect(MQTTAsync handle, const MQTTAsync_disconnectOptions* options);
+
1503 
1504 
-
1505 
-
1523 LIBMQTT_API int MQTTAsync_subscribeMany(MQTTAsync handle, int count, char* const* topic, const int* qos, MQTTAsync_responseOptions* response);
-
1524 
-
1537 LIBMQTT_API int MQTTAsync_unsubscribe(MQTTAsync handle, const char* topic, MQTTAsync_responseOptions* response);
-
1538 
-
1551 LIBMQTT_API int MQTTAsync_unsubscribeMany(MQTTAsync handle, int count, char* const* topic, MQTTAsync_responseOptions* response);
-
1552 
-
1553 
-
1573 LIBMQTT_API int MQTTAsync_send(MQTTAsync handle, const char* destinationName, int payloadlen, const void* payload, int qos,
-
1574  int retained, MQTTAsync_responseOptions* response);
-
1575 
-
1592 LIBMQTT_API int MQTTAsync_sendMessage(MQTTAsync handle, const char* destinationName, const MQTTAsync_message* msg, MQTTAsync_responseOptions* response);
-
1593 
-
1594 
-
1613 LIBMQTT_API int MQTTAsync_getPendingTokens(MQTTAsync handle, MQTTAsync_token **tokens);
-
1614 
-
1623 #define MQTTASYNC_TRUE 1
-
1624 LIBMQTT_API int MQTTAsync_isComplete(MQTTAsync handle, MQTTAsync_token token);
-
1625 
-
1626 
-
1639 LIBMQTT_API int MQTTAsync_waitForCompletion(MQTTAsync handle, MQTTAsync_token token, unsigned long timeout);
+
1512 LIBMQTT_API int MQTTAsync_isConnected(MQTTAsync handle);
+
1513 
+
1514 
+
1529 LIBMQTT_API int MQTTAsync_subscribe(MQTTAsync handle, const char* topic, int qos, MQTTAsync_responseOptions* response);
+
1530 
+
1531 
+
1549 LIBMQTT_API int MQTTAsync_subscribeMany(MQTTAsync handle, int count, char* const* topic, const int* qos, MQTTAsync_responseOptions* response);
+
1550 
+
1563 LIBMQTT_API int MQTTAsync_unsubscribe(MQTTAsync handle, const char* topic, MQTTAsync_responseOptions* response);
+
1564 
+
1577 LIBMQTT_API int MQTTAsync_unsubscribeMany(MQTTAsync handle, int count, char* const* topic, MQTTAsync_responseOptions* response);
+
1578 
+
1579 
+
1599 LIBMQTT_API int MQTTAsync_send(MQTTAsync handle, const char* destinationName, int payloadlen, const void* payload, int qos,
+
1600  int retained, MQTTAsync_responseOptions* response);
+
1601 
+
1618 LIBMQTT_API int MQTTAsync_sendMessage(MQTTAsync handle, const char* destinationName, const MQTTAsync_message* msg, MQTTAsync_responseOptions* response);
+
1619 
+
1620 
+
1639 LIBMQTT_API int MQTTAsync_getPendingTokens(MQTTAsync handle, MQTTAsync_token **tokens);
1640 
-
1641 
-
1652 LIBMQTT_API void MQTTAsync_freeMessage(MQTTAsync_message** msg);
-
1653 
-
1662 LIBMQTT_API void MQTTAsync_free(void* ptr);
-
1663 
-
1671 LIBMQTT_API void* MQTTAsync_malloc(size_t size);
-
1672 
-
1680 LIBMQTT_API void MQTTAsync_destroy(MQTTAsync* handle);
-
1681 
-
1682 
-
1683 
- -
1685 {
- - - - - - - -
1693 };
-
1694 
-
1695 
-
1701 LIBMQTT_API void MQTTAsync_setTraceLevel(enum MQTTASYNC_TRACE_LEVELS level);
-
1702 
-
1703 
-
1713 typedef void MQTTAsync_traceCallback(enum MQTTASYNC_TRACE_LEVELS level, char* message);
-
1714 
-
1721 LIBMQTT_API void MQTTAsync_setTraceCallback(MQTTAsync_traceCallback* callback);
-
1722 
- -
1730 
-
1737 LIBMQTT_API const char* MQTTAsync_strerror(int code);
-
1738 
-
1739 
-
2353 #if defined(__cplusplus)
-
2354  }
-
2355 #endif
-
2356 
-
2357 #endif
+
1649 #define MQTTASYNC_TRUE 1
+
1650 LIBMQTT_API int MQTTAsync_isComplete(MQTTAsync handle, MQTTAsync_token token);
+
1651 
+
1652 
+
1665 LIBMQTT_API int MQTTAsync_waitForCompletion(MQTTAsync handle, MQTTAsync_token token, unsigned long timeout);
+
1666 
+
1667 
+
1678 LIBMQTT_API void MQTTAsync_freeMessage(MQTTAsync_message** msg);
+
1679 
+
1688 LIBMQTT_API void MQTTAsync_free(void* ptr);
+
1689 
+
1697 LIBMQTT_API void* MQTTAsync_malloc(size_t size);
+
1698 
+
1706 LIBMQTT_API void MQTTAsync_destroy(MQTTAsync* handle);
+
1707 
+
1708 
+
1709 
+ +
1711 {
+ + + + + + + +
1719 };
+
1720 
+
1721 
+
1727 LIBMQTT_API void MQTTAsync_setTraceLevel(enum MQTTASYNC_TRACE_LEVELS level);
+
1728 
+
1729 
+
1739 typedef void MQTTAsync_traceCallback(enum MQTTASYNC_TRACE_LEVELS level, char* message);
+
1740 
+
1747 LIBMQTT_API void MQTTAsync_setTraceCallback(MQTTAsync_traceCallback* callback);
+
1748 
+ +
1756 
+
1763 LIBMQTT_API const char* MQTTAsync_strerror(int code);
+
1764 
+
1765 
+
2379 #if defined(__cplusplus)
+
2380  }
+
2381 #endif
+
2382 
+
2383 #endif
int MQTTAsync_isConnected(MQTTAsync handle)
-
unsigned int protos_len
Definition: MQTTAsync.h:1162
+
unsigned int protos_len
Definition: MQTTAsync.h:1176
int MQTTAsync_waitForCompletion(MQTTAsync handle, MQTTAsync_token token, unsigned long timeout)
-
int * qosList
Definition: MQTTAsync.h:577
-
const MQTTAsync_nameValue * httpHeaders
Definition: MQTTAsync.h:1353
-
void * context
Definition: MQTTAsync.h:727
+
int * qosList
Definition: MQTTAsync.h:582
+
const MQTTAsync_nameValue * httpHeaders
Definition: MQTTAsync.h:1372
+
void * context
Definition: MQTTAsync.h:732
-
int sessionPresent
Definition: MQTTAsync.h:624
-
int MQTTAsync_token
Definition: MQTTAsync.h:258
-
int MQTTVersion
Definition: MQTTAsync.h:588
-
int allowDisconnectedSendAtAnyTime
Definition: MQTTAsync.h:971
-
int MQTTVersion
Definition: MQTTAsync.h:967
+
int sessionPresent
Definition: MQTTAsync.h:629
+
int MQTTAsync_token
Definition: MQTTAsync.h:263
+
int MQTTVersion
Definition: MQTTAsync.h:593
+
int allowDisconnectedSendAtAnyTime
Definition: MQTTAsync.h:985
+
int MQTTVersion
Definition: MQTTAsync.h:981
int MQTTAsync_setDisconnected(MQTTAsync handle, void *context, MQTTAsync_disconnected *co)
int MQTTAsync_createWithOptions(MQTTAsync *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context, MQTTAsync_createOptions *options)
-
int struct_version
Definition: MQTTAsync.h:955
+
int struct_version
Definition: MQTTAsync.h:969
MQTTAsync_nameValue * MQTTAsync_getVersionInfo(void)
int MQTTAsync_subscribe(MQTTAsync handle, const char *topic, int qos, MQTTAsync_responseOptions *response)
-
void * MQTTAsync
Definition: MQTTAsync.h:248
-
const char * httpProxy
Definition: MQTTAsync.h:1357
-
int struct_version
Definition: MQTTAsync.h:1193
-
char * serverURI
Definition: MQTTAsync.h:587
-
int sessionPresent
Definition: MQTTAsync.h:589
-
int do_openssl_init
Definition: MQTTAsync.h:233
+
void * MQTTAsync
Definition: MQTTAsync.h:253
+
const char * httpProxy
Definition: MQTTAsync.h:1376
+
int struct_version
Definition: MQTTAsync.h:1212
+
char * serverURI
Definition: MQTTAsync.h:592
+
int sessionPresent
Definition: MQTTAsync.h:594
+
int do_openssl_init
Definition: MQTTAsync.h:238
void MQTTAsync_setTraceCallback(MQTTAsync_traceCallback *callback)
int MQTTAsync_setMessageArrivedCallback(MQTTAsync handle, void *context, MQTTAsync_messageArrived *ma)
-
Definition: MQTTAsync.h:596
-
void MQTTAsync_deliveryComplete(void *context, MQTTAsync_token token)
Definition: MQTTAsync.h:387
+
Definition: MQTTAsync.h:601
+
void MQTTAsync_deliveryComplete(void *context, MQTTAsync_token token)
Definition: MQTTAsync.h:392
int MQTTAsync_isComplete(MQTTAsync handle, MQTTAsync_token token)
-
int cleanstart
Definition: MQTTAsync.h:1329
-
MQTTAsync_token token
Definition: MQTTAsync.h:601
-
int retained
Definition: MQTTAsync.h:309
-
Definition: MQTTAsync.h:542
-
const char * message
Definition: MQTTAsync.h:537
-
int struct_version
Definition: MQTTAsync.h:1066
+
int cleanstart
Definition: MQTTAsync.h:1348
+
MQTTAsync_token token
Definition: MQTTAsync.h:606
+
int retained
Definition: MQTTAsync.h:314
+
Definition: MQTTAsync.h:547
+
const char * message
Definition: MQTTAsync.h:542
+
int struct_version
Definition: MQTTAsync.h:1080
Definition: MQTTProperties.h:112
-
const char * trustStore
Definition: MQTTAsync.h:1069
-
MQTTProperties properties
Definition: MQTTAsync.h:749
-
int automaticReconnect
Definition: MQTTAsync.h:1310
-
const char * privateKey
Definition: MQTTAsync.h:1079
-
int struct_version
Definition: MQTTAsync.h:599
-
int msgid
Definition: MQTTAsync.h:322
-
int code
Definition: MQTTAsync.h:555
-
char *const * serverURIs
Definition: MQTTAsync.h:1299
-
char struct_id[4]
Definition: MQTTAsync.h:706
-
int packet_type
Definition: MQTTAsync.h:559
-
MQTTProperties properties
Definition: MQTTAsync.h:1433
+
const char * trustStore
Definition: MQTTAsync.h:1083
+
MQTTProperties properties
Definition: MQTTAsync.h:755
+
int automaticReconnect
Definition: MQTTAsync.h:1329
+
const char * privateKey
Definition: MQTTAsync.h:1093
+
int struct_version
Definition: MQTTAsync.h:604
+
int msgid
Definition: MQTTAsync.h:327
+
int code
Definition: MQTTAsync.h:560
+
char *const * serverURIs
Definition: MQTTAsync.h:1318
+
char struct_id[4]
Definition: MQTTAsync.h:711
+
int packet_type
Definition: MQTTAsync.h:564
+
MQTTProperties properties
Definition: MQTTAsync.h:1459
int MQTTAsync_setCallbacks(MQTTAsync handle, void *context, MQTTAsync_connectionLost *cl, MQTTAsync_messageArrived *ma, MQTTAsync_deliveryComplete *dc)
int MQTTAsync_sendMessage(MQTTAsync handle, const char *destinationName, const MQTTAsync_message *msg, MQTTAsync_responseOptions *response)
-
MQTTAsync_willOptions * will
Definition: MQTTAsync.h:1236
-
const char * CApath
Definition: MQTTAsync.h:1115
-
MQTTAsync_token token
Definition: MQTTAsync.h:533
+
MQTTAsync_willOptions * will
Definition: MQTTAsync.h:1255
+
const char * CApath
Definition: MQTTAsync.h:1129
+
MQTTAsync_token token
Definition: MQTTAsync.h:538
int MQTTAsync_send(MQTTAsync handle, const char *destinationName, int payloadlen, const void *payload, int qos, int retained, MQTTAsync_responseOptions *response)
-
Definition: MQTTAsync.h:1054
+
Definition: MQTTAsync.h:1068
void * MQTTAsync_malloc(size_t size)
int MQTTAsync_disconnect(MQTTAsync handle, const MQTTAsync_disconnectOptions *options)
-
@ MQTTASYNC_TRACE_SEVERE
Definition: MQTTAsync.h:1691
+
@ MQTTASYNC_TRACE_SEVERE
Definition: MQTTAsync.h:1717
int MQTTAsync_subscribeMany(MQTTAsync handle, int count, char *const *topic, const int *qos, MQTTAsync_responseOptions *response)
-
MQTTProperties * willProperties
Definition: MQTTAsync.h:1337
-
MQTTAsync_onSuccess5 * onSuccess5
Definition: MQTTAsync.h:1343
-
int payloadlen
Definition: MQTTAsync.h:274
-
int sslVersion
Definition: MQTTAsync.h:1101
-
int MQTTVersion
Definition: MQTTAsync.h:623
-
const char * username
Definition: MQTTAsync.h:472
-
const char * keyStore
Definition: MQTTAsync.h:1074
+
MQTTProperties * willProperties
Definition: MQTTAsync.h:1356
+
MQTTAsync_onSuccess5 * onSuccess5
Definition: MQTTAsync.h:1362
+
int payloadlen
Definition: MQTTAsync.h:279
+
int sslVersion
Definition: MQTTAsync.h:1115
+
int MQTTVersion
Definition: MQTTAsync.h:628
+
const char * username
Definition: MQTTAsync.h:477
+
const char * keyStore
Definition: MQTTAsync.h:1088
void MQTTAsync_destroy(MQTTAsync *handle)
int MQTTAsync_unsubscribeMany(MQTTAsync handle, int count, char *const *topic, MQTTAsync_responseOptions *response)
-
int serverURIcount
Definition: MQTTAsync.h:1287
-
MQTTAsync_onFailure5 * onFailure5
Definition: MQTTAsync.h:1449
-
int len
Definition: MQTTAsync.h:479
-
MQTTAsync_message message
Definition: MQTTAsync.h:616
-
MQTTAsync_onFailure5 * onFailure5
Definition: MQTTAsync.h:1349
-
int connectTimeout
Definition: MQTTAsync.h:1252
-
MQTTAsync_token token
Definition: MQTTAsync.h:549
+
int serverURIcount
Definition: MQTTAsync.h:1306
+
MQTTAsync_onFailure5 * onFailure5
Definition: MQTTAsync.h:1475
+
int len
Definition: MQTTAsync.h:484
+
MQTTAsync_message message
Definition: MQTTAsync.h:621
+
MQTTAsync_onFailure5 * onFailure5
Definition: MQTTAsync.h:1368
+
int connectTimeout
Definition: MQTTAsync.h:1271
+
MQTTAsync_token token
Definition: MQTTAsync.h:554
void MQTTAsync_setTraceLevel(enum MQTTASYNC_TRACE_LEVELS level)
-
const char * httpsProxy
Definition: MQTTAsync.h:1361
-
MQTTProperties * connectProperties
Definition: MQTTAsync.h:1333
-
int maxRetryInterval
Definition: MQTTAsync.h:1318
-
Definition: MQTTAsync.h:565
+
const char * httpsProxy
Definition: MQTTAsync.h:1380
+
MQTTProperties * connectProperties
Definition: MQTTAsync.h:1352
+
int maxRetryInterval
Definition: MQTTAsync.h:1337
+
Definition: MQTTAsync.h:570
int MQTTAsync_setBeforePersistenceWrite(MQTTAsync handle, void *context, MQTTPersistence_beforeWrite *co)
int MQTTAsync_setConnectionLostCallback(MQTTAsync handle, void *context, MQTTAsync_connectionLost *cl)
-
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1417
-
@ MQTTASYNC_TRACE_FATAL
Definition: MQTTAsync.h:1692
+
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1443
+
@ MQTTASYNC_TRACE_FATAL
Definition: MQTTAsync.h:1718
-
void MQTTAsync_onFailure(void *context, MQTTAsync_failureData *response)
Definition: MQTTAsync.h:681
-
MQTTAsync_onFailure5 * onFailure5
Definition: MQTTAsync.h:745
+
void MQTTAsync_onFailure(void *context, MQTTAsync_failureData *response)
Definition: MQTTAsync.h:686
+
MQTTAsync_onFailure5 * onFailure5
Definition: MQTTAsync.h:751
int MQTTAsync_setUpdateConnectOptions(MQTTAsync handle, void *context, MQTTAsync_updateConnectOptions *co)
-
void MQTTAsync_traceCallback(enum MQTTASYNC_TRACE_LEVELS level, char *message)
Definition: MQTTAsync.h:1713
+
void MQTTAsync_traceCallback(enum MQTTASYNC_TRACE_LEVELS level, char *message)
Definition: MQTTAsync.h:1739
int MQTTAsync_getPendingTokens(MQTTAsync handle, MQTTAsync_token **tokens)
-
int MQTTAsync_updateConnectOptions(void *context, MQTTAsync_connectData *data)
Definition: MQTTAsync.h:492
-
int retryInterval
Definition: MQTTAsync.h:1260
-
void * context
Definition: MQTTAsync.h:1429
-
MQTTAsync_message message
Definition: MQTTAsync.h:581
-
int minRetryInterval
Definition: MQTTAsync.h:1314
-
int struct_version
Definition: MQTTAsync.h:547
-
Definition: MQTTAsync.h:703
-
Definition: MQTTAsync.h:460
-
void * ssl_psk_context
Definition: MQTTAsync.h:1140
-
MQTTProperties properties
Definition: MQTTAsync.h:603
-
@ MQTTASYNC_TRACE_MAXIMUM
Definition: MQTTAsync.h:1686
+
int MQTTAsync_updateConnectOptions(void *context, MQTTAsync_connectData *data)
Definition: MQTTAsync.h:497
+
int retryInterval
Definition: MQTTAsync.h:1279
+
void * context
Definition: MQTTAsync.h:1455
+
MQTTAsync_message message
Definition: MQTTAsync.h:586
+
int minRetryInterval
Definition: MQTTAsync.h:1333
+
int struct_version
Definition: MQTTAsync.h:552
+
Definition: MQTTAsync.h:708
+
Definition: MQTTAsync.h:465
+
void * ssl_psk_context
Definition: MQTTAsync.h:1154
+
MQTTProperties properties
Definition: MQTTAsync.h:608
+
@ MQTTASYNC_TRACE_MAXIMUM
Definition: MQTTAsync.h:1712
int MQTTPersistence_beforeWrite(void *context, int bufcount, char *buffers[], int buflens[])
Definition: MQTTClientPersistence.h:264
int MQTTAsync_create(MQTTAsync *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context)
-
const char * topicName
Definition: MQTTAsync.h:1015
-
void MQTTAsync_connectionLost(void *context, char *cause)
Definition: MQTTAsync.h:407
+
const char * topicName
Definition: MQTTAsync.h:1029
+
void MQTTAsync_connectionLost(void *context, char *cause)
Definition: MQTTAsync.h:412
void MQTTAsync_global_init(MQTTAsync_init_options *inits)
-
Definition: MQTTAsync.h:226
-
void MQTTAsync_onFailure5(void *context, MQTTAsync_failureData5 *response)
Definition: MQTTAsync.h:696
-
int keepAliveInterval
Definition: MQTTAsync.h:1204
-
char * destinationName
Definition: MQTTAsync.h:617
-
MQTTAsync_onSuccess5 * onSuccess5
Definition: MQTTAsync.h:1443
-
const char * enabledCipherSuites
Definition: MQTTAsync.h:1092
-
int qos
Definition: MQTTAsync.h:290
+
Definition: MQTTAsync.h:231
+
void MQTTAsync_onFailure5(void *context, MQTTAsync_failureData5 *response)
Definition: MQTTAsync.h:701
+
int keepAliveInterval
Definition: MQTTAsync.h:1223
+
char * destinationName
Definition: MQTTAsync.h:622
+
MQTTAsync_onSuccess5 * onSuccess5
Definition: MQTTAsync.h:1469
+
const char * enabledCipherSuites
Definition: MQTTAsync.h:1106
+
int qos
Definition: MQTTAsync.h:295
-
int struct_version
Definition: MQTTAsync.h:1406
+
int struct_version
Definition: MQTTAsync.h:1432
int MQTTAsync_unsubscribe(MQTTAsync handle, const char *topic, MQTTAsync_responseOptions *response)
-
void MQTTAsync_disconnected(void *context, MQTTProperties *properties, enum MQTTReasonCodes reasonCode)
Definition: MQTTAsync.h:439
-
int MQTTAsync_messageArrived(void *context, char *topicName, int topicLen, MQTTAsync_message *message)
Definition: MQTTAsync.h:364
-
Definition: MQTTAsync.h:1006
-
void * payload
Definition: MQTTAsync.h:276
-
@ MQTTASYNC_TRACE_MINIMUM
Definition: MQTTAsync.h:1688
-
MQTTAsync_token token
Definition: MQTTAsync.h:733
+
void MQTTAsync_disconnected(void *context, MQTTProperties *properties, enum MQTTReasonCodes reasonCode)
Definition: MQTTAsync.h:444
+
int MQTTAsync_messageArrived(void *context, char *topicName, int topicLen, MQTTAsync_message *message)
Definition: MQTTAsync.h:369
+
Definition: MQTTAsync.h:1020
+
void * payload
Definition: MQTTAsync.h:281
+
@ MQTTASYNC_TRACE_MINIMUM
Definition: MQTTAsync.h:1714
+
MQTTAsync_token token
Definition: MQTTAsync.h:739
int MQTTAsync_reconnect(MQTTAsync handle)
-
const void * data
Definition: MQTTAsync.h:1324
-
const void * data
Definition: MQTTAsync.h:480
-
MQTTASYNC_TRACE_LEVELS
Definition: MQTTAsync.h:1684
-
int struct_version
Definition: MQTTAsync.h:1013
-
const char * name
Definition: MQTTAsync.h:1170
+
const void * data
Definition: MQTTAsync.h:1343
+
const void * data
Definition: MQTTAsync.h:485
+
MQTTASYNC_TRACE_LEVELS
Definition: MQTTAsync.h:1710
+
int struct_version
Definition: MQTTAsync.h:1027
+
const char * name
Definition: MQTTAsync.h:1184
int MQTTAsync_setDeliveryCompleteCallback(MQTTAsync handle, void *context, MQTTAsync_deliveryComplete *dc)
-
char * destinationName
Definition: MQTTAsync.h:582
+
char * destinationName
Definition: MQTTAsync.h:587
int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions *options)
-
int sendWhileDisconnected
Definition: MQTTAsync.h:957
-
Definition: MQTTAsync.h:266
-
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:721
-
int MQTTVersion
Definition: MQTTAsync.h:1306
-
const unsigned char * protos
Definition: MQTTAsync.h:1156
-
int struct_version
Definition: MQTTAsync.h:465
-
const char * username
Definition: MQTTAsync.h:1242
+
int sendWhileDisconnected
Definition: MQTTAsync.h:971
+
Definition: MQTTAsync.h:271
+
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:726
+
int MQTTVersion
Definition: MQTTAsync.h:1325
+
const unsigned char * protos
Definition: MQTTAsync.h:1170
+
int struct_version
Definition: MQTTAsync.h:470
+
const char * username
Definition: MQTTAsync.h:1261
void MQTTAsync_free(void *ptr)
-
Definition: MQTTAsync.h:1179
-
MQTTAsync_onSuccess5 * onSuccess5
Definition: MQTTAsync.h:739
-
MQTTProperties properties
Definition: MQTTAsync.h:553
-
@ MQTTASYNC_TRACE_PROTOCOL
Definition: MQTTAsync.h:1689
+
Definition: MQTTAsync.h:1198
+
MQTTAsync_onSuccess5 * onSuccess5
Definition: MQTTAsync.h:745
+
MQTTProperties properties
Definition: MQTTAsync.h:558
+
@ MQTTASYNC_TRACE_PROTOCOL
Definition: MQTTAsync.h:1715
const char * MQTTAsync_strerror(int code)
-
int verify
Definition: MQTTAsync.h:1108
-
char * serverURI
Definition: MQTTAsync.h:622
-
Definition: MQTTAsync.h:1168
-
const char * privateKeyPassword
Definition: MQTTAsync.h:1082
-
Definition: MQTTAsync.h:530
+
int verify
Definition: MQTTAsync.h:1122
+
char * serverURI
Definition: MQTTAsync.h:627
+
Definition: MQTTAsync.h:1182
+
const char * privateKeyPassword
Definition: MQTTAsync.h:1096
+
Definition: MQTTAsync.h:535
Definition: MQTTSubscribeOpts.h:21
-
int disableDefaultTrustStore
Definition: MQTTAsync.h:1147
-
const void * data
Definition: MQTTAsync.h:1031
-
int maxInflight
Definition: MQTTAsync.h:1230
-
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:715
-
MQTTAsync_SSLOptions * ssl
Definition: MQTTAsync.h:1265
+
int disableDefaultTrustStore
Definition: MQTTAsync.h:1161
+
const void * data
Definition: MQTTAsync.h:1045
+
int maxInflight
Definition: MQTTAsync.h:1249
+
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:720
+
MQTTAsync_SSLOptions * ssl
Definition: MQTTAsync.h:1284
struct MQTTAsync_responseOptions MQTTAsync_responseOptions
-
int persistQoS0
Definition: MQTTAsync.h:983
-
int retained
Definition: MQTTAsync.h:1021
-
int maxBufferedMessages
Definition: MQTTAsync.h:961
-
int deleteOldestMessages
Definition: MQTTAsync.h:975
-
enum MQTTReasonCodes * reasonCodes
Definition: MQTTAsync.h:611
-
const char * password
Definition: MQTTAsync.h:1248
-
int code
Definition: MQTTAsync.h:535
-
MQTTSubscribe_options subscribeOptions
Definition: MQTTAsync.h:753
-
const char * message
Definition: MQTTAsync.h:1017
-
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1423
-
const char * value
Definition: MQTTAsync.h:1171
+
int persistQoS0
Definition: MQTTAsync.h:997
+
int retained
Definition: MQTTAsync.h:1035
+
int maxBufferedMessages
Definition: MQTTAsync.h:975
+
int deleteOldestMessages
Definition: MQTTAsync.h:989
+
enum MQTTReasonCodes * reasonCodes
Definition: MQTTAsync.h:616
+
const char * password
Definition: MQTTAsync.h:1267
+
int code
Definition: MQTTAsync.h:540
+
MQTTSubscribe_options subscribeOptions
Definition: MQTTAsync.h:759
+
const char * message
Definition: MQTTAsync.h:1031
+
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1449
+
const char * value
Definition: MQTTAsync.h:1185
int MQTTAsync_setConnected(MQTTAsync handle, void *context, MQTTAsync_connected *co)
-
const char * message
Definition: MQTTAsync.h:557
-
Definition: MQTTAsync.h:1401
-
MQTTSubscribe_options * subscribeOptionsList
Definition: MQTTAsync.h:762
+
const char * message
Definition: MQTTAsync.h:562
+
Definition: MQTTAsync.h:1427
+
MQTTSubscribe_options * subscribeOptionsList
Definition: MQTTAsync.h:768
int MQTTPersistence_afterRead(void *context, char **buffer, int *buflen)
Definition: MQTTClientPersistence.h:275
-
int subscribeOptionsCount
Definition: MQTTAsync.h:758
-
int len
Definition: MQTTAsync.h:1323
-
@ MQTTASYNC_TRACE_ERROR
Definition: MQTTAsync.h:1690
-
int struct_version
Definition: MQTTAsync.h:231
-
void MQTTAsync_connected(void *context, char *cause)
Definition: MQTTAsync.h:425
-
int enableServerCertAuth
Definition: MQTTAsync.h:1095
+
int subscribeOptionsCount
Definition: MQTTAsync.h:764
+
int len
Definition: MQTTAsync.h:1342
+
@ MQTTASYNC_TRACE_ERROR
Definition: MQTTAsync.h:1716
+
int struct_version
Definition: MQTTAsync.h:236
+
void MQTTAsync_connected(void *context, char *cause)
Definition: MQTTAsync.h:430
+
int enableServerCertAuth
Definition: MQTTAsync.h:1109
int MQTTAsync_setAfterPersistenceRead(MQTTAsync handle, void *context, MQTTPersistence_afterRead *co)
-
void MQTTAsync_onSuccess5(void *context, MQTTAsync_successData5 *response)
Definition: MQTTAsync.h:666
+
void MQTTAsync_onSuccess5(void *context, MQTTAsync_successData5 *response)
Definition: MQTTAsync.h:671
This structure represents a persistent data store, used to store outbound and inbound messages,...
-
int reasonCodeCount
Definition: MQTTAsync.h:610
-
int qos
Definition: MQTTAsync.h:574
-
int timeout
Definition: MQTTAsync.h:1411
-
int dup
Definition: MQTTAsync.h:316
-
MQTTProperties properties
Definition: MQTTAsync.h:326
-
int struct_version
Definition: MQTTAsync.h:272
-
int len
Definition: MQTTAsync.h:1030
-
void * ssl_error_context
Definition: MQTTAsync.h:1127
-
int struct_version
Definition: MQTTAsync.h:709
-
int qos
Definition: MQTTAsync.h:1026
-
MQTTAsync_token token
Definition: MQTTAsync.h:568
-
int cleansession
Definition: MQTTAsync.h:1226
-
int restoreMessages
Definition: MQTTAsync.h:979
-
@ MQTTASYNC_TRACE_MEDIUM
Definition: MQTTAsync.h:1687
+
int reasonCodeCount
Definition: MQTTAsync.h:615
+
int qos
Definition: MQTTAsync.h:579
+
int timeout
Definition: MQTTAsync.h:1437
+
int dup
Definition: MQTTAsync.h:321
+
MQTTProperties properties
Definition: MQTTAsync.h:331
+
int struct_version
Definition: MQTTAsync.h:277
+
int len
Definition: MQTTAsync.h:1044
+
void * ssl_error_context
Definition: MQTTAsync.h:1141
+
int struct_version
Definition: MQTTAsync.h:714
+
int qos
Definition: MQTTAsync.h:1040
+
MQTTAsync_token token
Definition: MQTTAsync.h:573
+
int cleansession
Definition: MQTTAsync.h:1245
+
int restoreMessages
Definition: MQTTAsync.h:993
+
@ MQTTASYNC_TRACE_MEDIUM
Definition: MQTTAsync.h:1713
void MQTTAsync_freeMessage(MQTTAsync_message **msg)
MQTTReasonCodes
Definition: MQTTReasonCodes.h:23
-
void * context
Definition: MQTTAsync.h:1283
-
void MQTTAsync_onSuccess(void *context, MQTTAsync_successData *response)
Definition: MQTTAsync.h:650
-
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1277
-
Definition: MQTTAsync.h:946
-
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1271
+
void * context
Definition: MQTTAsync.h:1302
+
void MQTTAsync_onSuccess(void *context, MQTTAsync_successData *response)
Definition: MQTTAsync.h:655
+
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1296
+
Definition: MQTTAsync.h:960
+
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1290
diff --git a/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h.html b/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h.html index 29f6a764a..079b01912 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h.html +++ b/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h.html @@ -443,7 +443,7 @@

diff --git a/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h_source.html b/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h_source.html index bb79e63b3..2325d9a53 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h_source.html +++ b/docs/MQTTAsync/html/_m_q_t_t_client_persistence_8h_source.html @@ -155,7 +155,7 @@
int(* Persistence_close)(void *handle)
Close the persistent store referred to by the handle.
Definition: MQTTClientPersistence.h:123
diff --git a/docs/MQTTAsync/html/_m_q_t_t_properties_8h.html b/docs/MQTTAsync/html/_m_q_t_t_properties_8h.html index 3f6f17a0d..2d59e3650 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_properties_8h.html +++ b/docs/MQTTAsync/html/_m_q_t_t_properties_8h.html @@ -794,7 +794,7 @@

diff --git a/docs/MQTTAsync/html/_m_q_t_t_properties_8h_source.html b/docs/MQTTAsync/html/_m_q_t_t_properties_8h_source.html index aa2e632c3..4eb6118c3 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_properties_8h_source.html +++ b/docs/MQTTAsync/html/_m_q_t_t_properties_8h_source.html @@ -257,7 +257,7 @@
@ MQTTPROPERTY_CODE_MAXIMUM_PACKET_SIZE
Definition: MQTTProperties.h:49
diff --git a/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h.html b/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h.html index 9c1c47702..500a75ed7 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h.html +++ b/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h.html @@ -233,7 +233,7 @@

diff --git a/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h_source.html b/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h_source.html index 5b5380cfd..25214ca41 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h_source.html +++ b/docs/MQTTAsync/html/_m_q_t_t_reason_codes_8h_source.html @@ -188,7 +188,7 @@
@ MQTTREASONCODE_QOS_NOT_SUPPORTED
Definition: MQTTReasonCodes.h:75
diff --git a/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h.html b/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h.html index ff3afb2ec..30fffc9f1 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h.html +++ b/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h.html @@ -122,7 +122,7 @@

diff --git a/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h_source.html b/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h_source.html index 4a3764542..70f5397f4 100644 --- a/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h_source.html +++ b/docs/MQTTAsync/html/_m_q_t_t_subscribe_opts_8h_source.html @@ -107,7 +107,7 @@
char struct_id[4]
Definition: MQTTSubscribeOpts.h:38
diff --git a/docs/MQTTAsync/html/annotated.html b/docs/MQTTAsync/html/annotated.html index aee39de57..47b0f525a 100644 --- a/docs/MQTTAsync/html/annotated.html +++ b/docs/MQTTAsync/html/annotated.html @@ -92,7 +92,7 @@ diff --git a/docs/MQTTAsync/html/async.html b/docs/MQTTAsync/html/async.html index cbd160387..14b453061 100644 --- a/docs/MQTTAsync/html/async.html +++ b/docs/MQTTAsync/html/async.html @@ -71,7 +71,7 @@ diff --git a/docs/MQTTAsync/html/auto_reconnect.html b/docs/MQTTAsync/html/auto_reconnect.html index 7f0dfd9e0..6dc40e0d0 100644 --- a/docs/MQTTAsync/html/auto_reconnect.html +++ b/docs/MQTTAsync/html/auto_reconnect.html @@ -73,7 +73,7 @@ diff --git a/docs/MQTTAsync/html/callbacks.html b/docs/MQTTAsync/html/callbacks.html index 5b844bc75..442531090 100644 --- a/docs/MQTTAsync/html/callbacks.html +++ b/docs/MQTTAsync/html/callbacks.html @@ -72,7 +72,7 @@ diff --git a/docs/MQTTAsync/html/classes.html b/docs/MQTTAsync/html/classes.html index 92286ab95..c3c457257 100644 --- a/docs/MQTTAsync/html/classes.html +++ b/docs/MQTTAsync/html/classes.html @@ -100,7 +100,7 @@ diff --git a/docs/MQTTAsync/html/files.html b/docs/MQTTAsync/html/files.html index 3cb8b2bc4..9689ac0f8 100644 --- a/docs/MQTTAsync/html/files.html +++ b/docs/MQTTAsync/html/files.html @@ -78,7 +78,7 @@ diff --git a/docs/MQTTAsync/html/functions.html b/docs/MQTTAsync/html/functions.html index 50bb74a22..e6f1414ec 100644 --- a/docs/MQTTAsync/html/functions.html +++ b/docs/MQTTAsync/html/functions.html @@ -525,7 +525,7 @@

- w -

 

Detailed Description

-

MQTTAsync_connectOptions defines several settings that control the way the client connects to an MQTT server. Default values are set in MQTTAsync_connectOptions_initializer.

+

MQTTAsync_connectOptions defines several settings that control the way the client connects to an MQTT server.

+

Suitable default values are set in the following initializers:

    +
  • MQTTAsync_connectOptions_initializer: for MQTT 3.1.1 non-WebSockets
  • +
  • MQTTAsync_connectOptions_initializer5: for MQTT 5.0 non-WebSockets
  • +
  • MQTTAsync_connectOptions_initializer_ws: for MQTT 3.1.1 WebSockets
  • +
  • MQTTAsync_connectOptions_initializer5_ws: for MQTT 5.0 WebSockets
  • +

Field Documentation

◆ struct_id

@@ -409,7 +415,7 @@

-

Reconnect automatically in the case of a connection being lost?

+

Reconnect automatically in the case of a connection being lost. 0=false, 1=true

@@ -424,7 +430,7 @@

-

Minimum retry interval in seconds. Doubled on each failed retry.

+

The minimum automatic reconnect retry interval in seconds. Doubled on each failed retry.

@@ -439,7 +445,7 @@

-

Maximum retry interval in seconds. The doubling stops here on failed retries.

+

The maximum automatic reconnect retry interval in seconds. The doubling stops here on failed retries.

@@ -613,7 +619,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__create_options.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__create_options.html index f8c66ed5b..7406f997d 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__create_options.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__create_options.html @@ -234,7 +234,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__disconnect_options.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__disconnect_options.html index 8d02470f9..cb3b18c93 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__disconnect_options.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__disconnect_options.html @@ -254,7 +254,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data.html index aa83c9e11..5e6820a8f 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data.html @@ -134,7 +134,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data5.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data5.html index ec78ed548..65bab0b02 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data5.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__failure_data5.html @@ -219,7 +219,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__init__options.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__init__options.html index 83540bea0..862239cff 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__init__options.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__init__options.html @@ -134,7 +134,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__message.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__message.html index f6422fd5d..7e0765aa1 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__message.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__message.html @@ -247,7 +247,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__name_value.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__name_value.html index b9edaf577..186c1f87e 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__name_value.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__name_value.html @@ -117,7 +117,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__response_options.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__response_options.html index 3ff112c26..824af54b9 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__response_options.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__response_options.html @@ -187,7 +187,7 @@

-

A token is returned from the call. It can be used to track the state of this request, both in the callbacks and in future calls such as MQTTAsync_waitForCompletion.

+

A token is returned from the call. It can be used to track the state of this request, both in the callbacks and in future calls such as MQTTAsync_waitForCompletion. This is output only - any change by the application will be ignored.

@@ -284,7 +284,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data.html index 27e081f11..2ce4df8dc 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data.html @@ -272,7 +272,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data5.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data5.html index a58e79c89..f93b72eea 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data5.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__success_data5.html @@ -380,7 +380,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_async__will_options.html b/docs/MQTTAsync/html/struct_m_q_t_t_async__will_options.html index 76980de76..f04ee20d6 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_async__will_options.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_async__will_options.html @@ -237,7 +237,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_client__persistence.html b/docs/MQTTAsync/html/struct_m_q_t_t_client__persistence.html index f046fd8c1..3733e54fc 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_client__persistence.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_client__persistence.html @@ -239,7 +239,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_len_string.html b/docs/MQTTAsync/html/struct_m_q_t_t_len_string.html index 5533b4891..c0d5f6e86 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_len_string.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_len_string.html @@ -117,7 +117,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_properties.html b/docs/MQTTAsync/html/struct_m_q_t_t_properties.html index 6f3b9b5ea..991d1946a 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_properties.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_properties.html @@ -151,7 +151,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_property.html b/docs/MQTTAsync/html/struct_m_q_t_t_property.html index 2c2d44b63..712d6dbe4 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_property.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_property.html @@ -206,7 +206,7 @@

diff --git a/docs/MQTTAsync/html/struct_m_q_t_t_subscribe__options.html b/docs/MQTTAsync/html/struct_m_q_t_t_subscribe__options.html index 766570fef..e7ae44005 100644 --- a/docs/MQTTAsync/html/struct_m_q_t_t_subscribe__options.html +++ b/docs/MQTTAsync/html/struct_m_q_t_t_subscribe__options.html @@ -168,7 +168,7 @@

diff --git a/docs/MQTTAsync/html/subscribe.html b/docs/MQTTAsync/html/subscribe.html index bac9f6872..753762f7e 100644 --- a/docs/MQTTAsync/html/subscribe.html +++ b/docs/MQTTAsync/html/subscribe.html @@ -250,43 +250,43 @@
}
-
void * context
Definition: MQTTAsync.h:727
+
void * context
Definition: MQTTAsync.h:732
int MQTTAsync_subscribe(MQTTAsync handle, const char *topic, int qos, MQTTAsync_responseOptions *response)
-
#define MQTTAsync_responseOptions_initializer
Definition: MQTTAsync.h:765
-
void * MQTTAsync
Definition: MQTTAsync.h:248
+
#define MQTTAsync_responseOptions_initializer
Definition: MQTTAsync.h:771
+
void * MQTTAsync
Definition: MQTTAsync.h:253
int MQTTAsync_setCallbacks(MQTTAsync handle, void *context, MQTTAsync_connectionLost *cl, MQTTAsync_messageArrived *ma, MQTTAsync_deliveryComplete *dc)
int MQTTAsync_disconnect(MQTTAsync handle, const MQTTAsync_disconnectOptions *options)
#define MQTTCLIENT_PERSISTENCE_NONE
Definition: MQTTClientPersistence.h:74
-
int payloadlen
Definition: MQTTAsync.h:274
+
int payloadlen
Definition: MQTTAsync.h:279
void MQTTAsync_destroy(MQTTAsync *handle)
-
Definition: MQTTAsync.h:565
-
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1417
+
Definition: MQTTAsync.h:570
+
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1443
#define MQTTASYNC_SUCCESS
Definition: MQTTAsync.h:113
-
Definition: MQTTAsync.h:703
+
Definition: MQTTAsync.h:708
int MQTTAsync_create(MQTTAsync *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context)
-
#define MQTTAsync_disconnectOptions_initializer
Definition: MQTTAsync.h:1452
-
int keepAliveInterval
Definition: MQTTAsync.h:1204
-
void * payload
Definition: MQTTAsync.h:276
+
#define MQTTAsync_disconnectOptions_initializer
Definition: MQTTAsync.h:1478
+
int keepAliveInterval
Definition: MQTTAsync.h:1223
+
void * payload
Definition: MQTTAsync.h:281
int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions *options)
-
Definition: MQTTAsync.h:266
-
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:721
+
Definition: MQTTAsync.h:271
+
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:726
void MQTTAsync_free(void *ptr)
-
Definition: MQTTAsync.h:1179
-
Definition: MQTTAsync.h:530
-
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:715
-
int code
Definition: MQTTAsync.h:535
-
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1423
-
Definition: MQTTAsync.h:1401
-
#define MQTTAsync_connectOptions_initializer
Definition: MQTTAsync.h:1365
+
Definition: MQTTAsync.h:1198
+
Definition: MQTTAsync.h:535
+
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:720
+
int code
Definition: MQTTAsync.h:540
+
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1449
+
Definition: MQTTAsync.h:1427
+
#define MQTTAsync_connectOptions_initializer
Definition: MQTTAsync.h:1384
-
int cleansession
Definition: MQTTAsync.h:1226
+
int cleansession
Definition: MQTTAsync.h:1245
void MQTTAsync_freeMessage(MQTTAsync_message **msg)
-
void * context
Definition: MQTTAsync.h:1283
-
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1277
-
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1271
+
void * context
Definition: MQTTAsync.h:1302
+
MQTTAsync_onFailure * onFailure
Definition: MQTTAsync.h:1296
+
MQTTAsync_onSuccess * onSuccess
Definition: MQTTAsync.h:1290
diff --git a/docs/MQTTAsync/html/tracing.html b/docs/MQTTAsync/html/tracing.html index 0ae79bef6..83f159ecd 100644 --- a/docs/MQTTAsync/html/tracing.html +++ b/docs/MQTTAsync/html/tracing.html @@ -139,7 +139,7 @@

Memory Allocation Tracing

diff --git a/docs/MQTTAsync/html/wildcard.html b/docs/MQTTAsync/html/wildcard.html index 841613cdb..1aa6f05a5 100644 --- a/docs/MQTTAsync/html/wildcard.html +++ b/docs/MQTTAsync/html/wildcard.html @@ -81,7 +81,7 @@ diff --git a/docs/MQTTAsync/man/man3/MQTTAsync.h.3 b/docs/MQTTAsync/man/man3/MQTTAsync.h.3 index b81546217..3707e52c9 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync.h.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync.h" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync.h" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME @@ -398,7 +398,19 @@ Return code: no more messages can be buffered .SS "#define MQTTASYNC_SSL_NOT_SUPPORTED \-13" Return code: Attempting SSL connection using non-SSL version of library .SS "#define MQTTASYNC_BAD_PROTOCOL \-14" -Return code: protocol prefix in serverURI should be tcp://, ssl://, ws:// or wss:// The TLS enabled prefixes (ssl, wss) are only valid if the TLS version of the library is linked with\&. +Return code: protocol prefix in serverURI should be: +.PD 0 + +.IP "\(bu" 2 +\fItcp://\fP or \fImqtt://\fP - Insecure TCP +.IP "\(bu" 2 +\fIssl://\fP or \fImqtts://\fP - Encrypted SSL/TLS +.IP "\(bu" 2 +\fIws://\fP - Insecure websockets +.IP "\(bu" 2 +\fIwss://\fP - Secure web sockets +.PP +The TLS enabled prefixes (ssl, mqtts, wss) are only valid if the TLS version of the library is linked with\&. .SS "#define MQTTASYNC_BAD_MQTT_OPTION \-15" Return code: don't use options for another version of MQTT .SS "#define MQTTASYNC_WRONG_MQTT_VERSION \-16" @@ -456,6 +468,7 @@ Bad return code from subscribe, as defined in the 3\&.1\&.1 specification { {'M', 'Q', 'T', 'C'}, 8, 60, 1, 65535, NULL, NULL, NULL, 30, 0,\ NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 3\&.1\&.1 non-WebSocket connections .SS "#define MQTTAsync_connectOptions_initializer5" \fBValue:\fP .PP @@ -463,6 +476,7 @@ NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NU { {'M', 'Q', 'T', 'C'}, 8, 60, 0, 65535, NULL, NULL, NULL, 30, 0,\ NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_5, 0, 1, 60, {0, NULL}, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 5\&.0 non-WebSocket connections .SS "#define MQTTAsync_connectOptions_initializer_ws" \fBValue:\fP .PP @@ -470,6 +484,7 @@ NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_5, 0, 1, 60, {0, NULL}, 1, NULL, NU { {'M', 'Q', 'T', 'C'}, 8, 45, 1, 65535, NULL, NULL, NULL, 30, 0,\ NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 3\&.1\&.1 WebSockets connections\&. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts\&. .SS "#define MQTTAsync_connectOptions_initializer5_ws" \fBValue:\fP .PP @@ -477,6 +492,7 @@ NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_DEFAULT, 0, 1, 60, {0, NULL}, 0, NU { {'M', 'Q', 'T', 'C'}, 8, 45, 0, 65535, NULL, NULL, NULL, 30, 0,\ NULL, NULL, NULL, NULL, 0, NULL, MQTTVERSION_5, 0, 1, 60, {0, NULL}, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 5\&.0 WebSockets connections\&. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts\&. .SS "#define MQTTAsync_disconnectOptions_initializer" \fBValue:\fP .PP @@ -884,7 +900,17 @@ This function creates an MQTT client ready for connection to the specified serve .RS 4 \fIhandle\fP A pointer to an \fBMQTTAsync\fP handle\&. The handle is populated with a valid client reference following a successful return from this function\&. .br -\fIserverURI\fP A null-terminated string specifying the server to which the client will connect\&. It takes the form \fIprotocol://host:port\fP\&. \fIprotocol\fP must be \fItcp\fP, \fIssl\fP, \fIws\fP or \fIwss\fP\&. The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with\&. For \fIhost\fP, you can specify either an IP address or a host name\&. For instance, to connect to a server running on the local machines with the default MQTT port, specify \fItcp://localhost:1883\fP\&. +\fIserverURI\fP A null-terminated string specifying the server to which the client will connect\&. It takes the form \fIprotocol://host:port\fP where \fIprotocol\fP must be: +.br + \fItcp://\fP or \fImqtt://\fP - Insecure TCP +.br + \fIssl://\fP or \fImqtts://\fP - Encrypted SSL/TLS +.br + \fIws://\fP - Insecure websockets +.br + \fIwss://\fP - Secure web sockets +.br + The TLS enabled prefixes (ssl, mqtts, wss) are only valid if a TLS version of the library is linked with\&. For \fIhost\fP, you can specify either an IP address or a host name\&. For instance, to connect to a server running on the local machines with the default MQTT port, specify \fItcp://localhost:1883\fP\&. .br \fIclientId\fP The client identifier passed to the server when the client connects to it\&. It is a null-terminated UTF-8 encoded string\&. .br diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_SSLOptions.3 b/docs/MQTTAsync/man/man3/MQTTAsync_SSLOptions.3 index aa135c315..4bd63972e 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_SSLOptions.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_SSLOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_SSLOptions" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_SSLOptions" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_connectData.3 b/docs/MQTTAsync/man/man3/MQTTAsync_connectData.3 index 8e33b9410..ea98f3b9e 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_connectData.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_connectData.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_connectData" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_connectData" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_connectOptions.3 b/docs/MQTTAsync/man/man3/MQTTAsync_connectOptions.3 index 62ea8d697..6afd1893c 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_connectOptions.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_connectOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_connectOptions" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_connectOptions" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME @@ -110,7 +110,19 @@ MQTTAsync_connectOptions .in -1c .SH "Detailed Description" .PP -\fBMQTTAsync_connectOptions\fP defines several settings that control the way the client connects to an MQTT server\&. Default values are set in MQTTAsync_connectOptions_initializer\&. +\fBMQTTAsync_connectOptions\fP defines several settings that control the way the client connects to an MQTT server\&. +.PP +Suitable default values are set in the following initializers: +.IP "\(bu" 2 +MQTTAsync_connectOptions_initializer: for MQTT 3\&.1\&.1 non-WebSockets +.IP "\(bu" 2 +MQTTAsync_connectOptions_initializer5: for MQTT 5\&.0 non-WebSockets +.IP "\(bu" 2 +MQTTAsync_connectOptions_initializer_ws: for MQTT 3\&.1\&.1 WebSockets +.IP "\(bu" 2 +MQTTAsync_connectOptions_initializer5_ws: for MQTT 5\&.0 WebSockets +.PP + .SH "Field Documentation" .PP .SS "char struct_id[4]" @@ -164,11 +176,11 @@ An array of null-terminated strings specifying the servers to .SS "int MQTTVersion" Sets the version of MQTT to be used on the connect\&. MQTTVERSION_DEFAULT (0) = default: start with 3\&.1\&.1, and if that fails, fall back to 3\&.1 MQTTVERSION_3_1 (3) = only try version 3\&.1 MQTTVERSION_3_1_1 (4) = only try version 3\&.1\&.1 .SS "int automaticReconnect" -Reconnect automatically in the case of a connection being lost? +Reconnect automatically in the case of a connection being lost\&. 0=false, 1=true .SS "int minRetryInterval" -Minimum retry interval in seconds\&. Doubled on each failed retry\&. +The minimum automatic reconnect retry interval in seconds\&. Doubled on each failed retry\&. .SS "int maxRetryInterval" -Maximum retry interval in seconds\&. The doubling stops here on failed retries\&. +The maximum automatic reconnect retry interval in seconds\&. The doubling stops here on failed retries\&. .SS "int len" binary password length .SS "const void* data" diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_createOptions.3 b/docs/MQTTAsync/man/man3/MQTTAsync_createOptions.3 index d3de241db..73c4cba5f 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_createOptions.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_createOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_createOptions" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_createOptions" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_disconnectOptions.3 b/docs/MQTTAsync/man/man3/MQTTAsync_disconnectOptions.3 index 252f07434..1778c8918 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_disconnectOptions.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_disconnectOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_disconnectOptions" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_disconnectOptions" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_failureData.3 b/docs/MQTTAsync/man/man3/MQTTAsync_failureData.3 index 3d83aa460..72954f370 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_failureData.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_failureData.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_failureData" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_failureData" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_failureData5.3 b/docs/MQTTAsync/man/man3/MQTTAsync_failureData5.3 index 6f342c102..4cda0bf79 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_failureData5.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_failureData5.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_failureData5" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_failureData5" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_init_options.3 b/docs/MQTTAsync/man/man3/MQTTAsync_init_options.3 index 80336029a..a78e53807 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_init_options.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_init_options.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_init_options" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_init_options" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_message.3 b/docs/MQTTAsync/man/man3/MQTTAsync_message.3 index 9bed3109c..960c0d168 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_message.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_message.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_message" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_message" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_nameValue.3 b/docs/MQTTAsync/man/man3/MQTTAsync_nameValue.3 index 85761f78f..831d0e591 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_nameValue.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_nameValue.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_nameValue" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_nameValue" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_responseOptions.3 b/docs/MQTTAsync/man/man3/MQTTAsync_responseOptions.3 index 37f46f5d6..af47e26fd 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_responseOptions.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_responseOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_responseOptions" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_responseOptions" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME @@ -64,7 +64,7 @@ A pointer to a callback function to be called if the API call fails\&. Can be se .SS "void* context" A pointer to any application-specific context\&. The the \fIcontext\fP pointer is passed to success or failure callback functions to provide access to the context information in the callback\&. .SS "\fBMQTTAsync_token\fP token" -A token is returned from the call\&. It can be used to track the state of this request, both in the callbacks and in future calls such as \fBMQTTAsync_waitForCompletion\fP\&. +A token is returned from the call\&. It can be used to track the state of this request, both in the callbacks and in future calls such as \fBMQTTAsync_waitForCompletion\fP\&. This is output only - any change by the application will be ignored\&. .SS "\fBMQTTAsync_onSuccess5\fP* onSuccess5" A pointer to a callback function to be called if the API call successfully completes\&. Can be set to NULL, in which case no indication of successful completion will be received\&. .SS "\fBMQTTAsync_onFailure5\fP* onFailure5" diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_successData.3 b/docs/MQTTAsync/man/man3/MQTTAsync_successData.3 index 3db0941bd..dfaa0fad0 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_successData.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_successData.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_successData" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_successData" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_successData5.3 b/docs/MQTTAsync/man/man3/MQTTAsync_successData5.3 index 77ec5f2bf..f5e23363b 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_successData5.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_successData5.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_successData5" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_successData5" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTAsync_willOptions.3 b/docs/MQTTAsync/man/man3/MQTTAsync_willOptions.3 index 68b72854d..5f3d83463 100644 --- a/docs/MQTTAsync/man/man3/MQTTAsync_willOptions.3 +++ b/docs/MQTTAsync/man/man3/MQTTAsync_willOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTAsync_willOptions" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTAsync_willOptions" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTClientPersistence.h.3 b/docs/MQTTAsync/man/man3/MQTTClientPersistence.h.3 index 83fd46a0f..7b08a85af 100644 --- a/docs/MQTTAsync/man/man3/MQTTClientPersistence.h.3 +++ b/docs/MQTTAsync/man/man3/MQTTClientPersistence.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTClientPersistence.h" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClientPersistence.h" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTClient_persistence.3 b/docs/MQTTAsync/man/man3/MQTTClient_persistence.3 index 38fcefc2f..b6aaa5dd5 100644 --- a/docs/MQTTAsync/man/man3/MQTTClient_persistence.3 +++ b/docs/MQTTAsync/man/man3/MQTTClient_persistence.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_persistence" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_persistence" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTLenString.3 b/docs/MQTTAsync/man/man3/MQTTLenString.3 index b69695c9c..a49898e34 100644 --- a/docs/MQTTAsync/man/man3/MQTTLenString.3 +++ b/docs/MQTTAsync/man/man3/MQTTLenString.3 @@ -1,4 +1,4 @@ -.TH "MQTTLenString" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTLenString" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTProperties.3 b/docs/MQTTAsync/man/man3/MQTTProperties.3 index 49af8c234..26b4e4ae6 100644 --- a/docs/MQTTAsync/man/man3/MQTTProperties.3 +++ b/docs/MQTTAsync/man/man3/MQTTProperties.3 @@ -1,4 +1,4 @@ -.TH "MQTTProperties" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTProperties" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTProperties.h.3 b/docs/MQTTAsync/man/man3/MQTTProperties.h.3 index cc58d21af..1e9f29e77 100644 --- a/docs/MQTTAsync/man/man3/MQTTProperties.h.3 +++ b/docs/MQTTAsync/man/man3/MQTTProperties.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTProperties.h" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTProperties.h" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTProperty.3 b/docs/MQTTAsync/man/man3/MQTTProperty.3 index 37e6b6bc8..32b49f7a3 100644 --- a/docs/MQTTAsync/man/man3/MQTTProperty.3 +++ b/docs/MQTTAsync/man/man3/MQTTProperty.3 @@ -1,4 +1,4 @@ -.TH "MQTTProperty" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTProperty" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTReasonCodes.h.3 b/docs/MQTTAsync/man/man3/MQTTReasonCodes.h.3 index ce8836102..2ba332e86 100644 --- a/docs/MQTTAsync/man/man3/MQTTReasonCodes.h.3 +++ b/docs/MQTTAsync/man/man3/MQTTReasonCodes.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTReasonCodes.h" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTReasonCodes.h" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTSubscribeOpts.h.3 b/docs/MQTTAsync/man/man3/MQTTSubscribeOpts.h.3 index 629a1487a..28ec11c6a 100644 --- a/docs/MQTTAsync/man/man3/MQTTSubscribeOpts.h.3 +++ b/docs/MQTTAsync/man/man3/MQTTSubscribeOpts.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTSubscribeOpts.h" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTSubscribeOpts.h" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/MQTTSubscribe_options.3 b/docs/MQTTAsync/man/man3/MQTTSubscribe_options.3 index 284ccd577..2ab8474ff 100644 --- a/docs/MQTTAsync/man/man3/MQTTSubscribe_options.3 +++ b/docs/MQTTAsync/man/man3/MQTTSubscribe_options.3 @@ -1,4 +1,4 @@ -.TH "MQTTSubscribe_options" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTSubscribe_options" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/async.3 b/docs/MQTTAsync/man/man3/async.3 index fc42554af..c3901c023 100644 --- a/docs/MQTTAsync/man/man3/async.3 +++ b/docs/MQTTAsync/man/man3/async.3 @@ -1,4 +1,4 @@ -.TH "async" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "async" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/auto_reconnect.3 b/docs/MQTTAsync/man/man3/auto_reconnect.3 index e145188e1..1e73986da 100644 --- a/docs/MQTTAsync/man/man3/auto_reconnect.3 +++ b/docs/MQTTAsync/man/man3/auto_reconnect.3 @@ -1,4 +1,4 @@ -.TH "auto_reconnect" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "auto_reconnect" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/callbacks.3 b/docs/MQTTAsync/man/man3/callbacks.3 index db5b89fb5..14ebb66ae 100644 --- a/docs/MQTTAsync/man/man3/callbacks.3 +++ b/docs/MQTTAsync/man/man3/callbacks.3 @@ -1,4 +1,4 @@ -.TH "callbacks" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "callbacks" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/offline_publish.3 b/docs/MQTTAsync/man/man3/offline_publish.3 index 0f863e77f..fcd941df2 100644 --- a/docs/MQTTAsync/man/man3/offline_publish.3 +++ b/docs/MQTTAsync/man/man3/offline_publish.3 @@ -1,4 +1,4 @@ -.TH "offline_publish" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "offline_publish" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/publish.3 b/docs/MQTTAsync/man/man3/publish.3 index 362461d74..a123bafdd 100644 --- a/docs/MQTTAsync/man/man3/publish.3 +++ b/docs/MQTTAsync/man/man3/publish.3 @@ -1,4 +1,4 @@ -.TH "publish" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "publish" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/qos.3 b/docs/MQTTAsync/man/man3/qos.3 index 05a25bf40..ebf2b4f7c 100644 --- a/docs/MQTTAsync/man/man3/qos.3 +++ b/docs/MQTTAsync/man/man3/qos.3 @@ -1,4 +1,4 @@ -.TH "qos" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "qos" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/subscribe.3 b/docs/MQTTAsync/man/man3/subscribe.3 index d6745aeff..f45f171f9 100644 --- a/docs/MQTTAsync/man/man3/subscribe.3 +++ b/docs/MQTTAsync/man/man3/subscribe.3 @@ -1,4 +1,4 @@ -.TH "subscribe" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "subscribe" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/tracing.3 b/docs/MQTTAsync/man/man3/tracing.3 index 0c8c4104d..e02ccc206 100644 --- a/docs/MQTTAsync/man/man3/tracing.3 +++ b/docs/MQTTAsync/man/man3/tracing.3 @@ -1,4 +1,4 @@ -.TH "tracing" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "tracing" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTAsync/man/man3/wildcard.3 b/docs/MQTTAsync/man/man3/wildcard.3 index c68878b72..d8586d1ec 100644 --- a/docs/MQTTAsync/man/man3/wildcard.3 +++ b/docs/MQTTAsync/man/man3/wildcard.3 @@ -1,4 +1,4 @@ -.TH "wildcard" 3 "Mon Mar 28 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- +.TH "wildcard" 3 "Thu Sep 29 2022" "Paho Asynchronous MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/html/_m_q_t_t_client_8h.html b/docs/MQTTClient/html/_m_q_t_t_client_8h.html index aacc0a8cb..1ed5cb4e4 100644 --- a/docs/MQTTClient/html/_m_q_t_t_client_8h.html +++ b/docs/MQTTClient/html/_m_q_t_t_client_8h.html @@ -460,7 +460,12 @@

-

Return code: protocol prefix in serverURI should be tcp://, ssl://, ws:// or wss:// The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with.

+

Return code: protocol prefix in serverURI should be:

    +
  • tcp:// or mqtt:// - Insecure TCP
  • +
  • ssl:// or mqtts:// - Encrypted SSL/TLS
  • +
  • ws:// - Insecure websockets
  • +
  • wss:// - Secure web sockets The TLS enabled prefixes (ssl, mqtts, wss) are only valid if a TLS version of the library is linked with.
  • +
@@ -723,7 +728,8 @@

Value: +

Initializer for connect options for MQTT 3.1.1 non-WebSocket connections

+ @@ -739,7 +745,8 @@

Value: +

Initializer for connect options for MQTT 5.0 non-WebSocket connections

+ @@ -755,7 +762,8 @@

Value: +

Initializer for connect options for MQTT 3.1.1 WebSockets connections. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts.

+ @@ -771,7 +779,8 @@

Value: +

Initializer for connect options for MQTT 5.0 WebSockets connections. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts.

+ @@ -1208,7 +1217,12 @@

MQTTClient_persistence). See also MQTTClient_destroy().

Parameters
- +
handleA pointer to an MQTTClient handle. The handle is populated with a valid client reference following a successful return from this function.
serverURIA null-terminated string specifying the server to which the client will connect. It takes the form protocol://host:port. Currently, protocol must be tcp, ssl, ws or wss. The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with. For host, you can specify either an IP address or a host name. For instance, to connect to a server running on the local machines with the default MQTT port, specify tcp://localhost:1883.
serverURIA null-terminated string specifying the server to which the client will connect. It takes the form protocol://host:port. Currently, protocol must be:
+ tcp:// or mqtt:// - Insecure TCP
+ ssl:// or mqtts:// - Encrypted SSL/TLS
+ ws:// - Insecure websockets
+ wss:// - Secure web sockets
+ The TLS enabled prefixes (ssl, mqtts, wss) are only valid if a TLS version of the library is linked with. For host, you can specify either an IP address or a host name. For instance, to connect to a server running on the local machines with the default MQTT port, specify tcp://localhost:1883.
clientIdThe client identifier passed to the server when the client connects to it. It is a null-terminated UTF-8 encoded string.
persistence_typeThe type of persistence to be used by the client:
MQTTCLIENT_PERSISTENCE_NONE: Use in-memory persistence. If the device or system on which the client is running fails or is switched off, the current state of any in-flight messages is lost and some messages may not be delivered even at QoS1 and QoS2.
@@ -2496,11 +2510,11 @@

#define MQTTVERSION_DEFAULT
Definition: MQTTClient.h:204
-
#define MQTTVERSION_5
Definition: MQTTClient.h:216
+
#define MQTTVERSION_DEFAULT
Definition: MQTTClient.h:208
+
#define MQTTVERSION_5
Definition: MQTTClient.h:220
diff --git a/docs/MQTTClient/html/_m_q_t_t_client_8h_source.html b/docs/MQTTClient/html/_m_q_t_t_client_8h_source.html index e3efb2707..2966aaec4 100644 --- a/docs/MQTTClient/html/_m_q_t_t_client_8h_source.html +++ b/docs/MQTTClient/html/_m_q_t_t_client_8h_source.html @@ -132,449 +132,449 @@
177 
180  #define MQTTCLIENT_BAD_MQTT_VERSION -11
181 
-
186 #define MQTTCLIENT_BAD_PROTOCOL -14
-
187 
-
190  #define MQTTCLIENT_BAD_MQTT_OPTION -15
+
190 #define MQTTCLIENT_BAD_PROTOCOL -14
191 
-
194  #define MQTTCLIENT_WRONG_MQTT_VERSION -16
+
194  #define MQTTCLIENT_BAD_MQTT_OPTION -15
195 
-
198  #define MQTTCLIENT_0_LEN_WILL_TOPIC -17
+
198  #define MQTTCLIENT_WRONG_MQTT_VERSION -16
199 
-
200 
-
204 #define MQTTVERSION_DEFAULT 0
-
205 
-
208 #define MQTTVERSION_3_1 3
+
202  #define MQTTCLIENT_0_LEN_WILL_TOPIC -17
+
203 
+
204 
+
208 #define MQTTVERSION_DEFAULT 0
209 
-
212 #define MQTTVERSION_3_1_1 4
+
212 #define MQTTVERSION_3_1 3
213 
-
216  #define MQTTVERSION_5 5
+
216 #define MQTTVERSION_3_1_1 4
217 
-
220 #define MQTT_BAD_SUBSCRIBE 0x80
+
220  #define MQTTVERSION_5 5
221 
-
225 typedef struct
-
226 {
-
228  char struct_id[4];
- - - -
234 
-
235 #define MQTTClient_init_options_initializer { {'M', 'Q', 'T', 'G'}, 0, 0 }
-
236 
-
241 LIBMQTT_API void MQTTClient_global_init(MQTTClient_init_options* inits);
-
242 
-
247 typedef void* MQTTClient;
- -
259 typedef int MQTTClient_token;
-
260 
-
267 typedef struct
-
268 {
-
270  char struct_id[4];
- - -
277  void* payload;
-
291  int qos;
-
310  int retained;
-
317  int dup;
-
321  int msgid;
- - -
327 
-
328 #define MQTTClient_message_initializer { {'M', 'Q', 'T', 'M'}, 1, 0, NULL, 0, 0, 0, 0, MQTTProperties_initializer }
-
329 
-
360 typedef int MQTTClient_messageArrived(void* context, char* topicName, int topicLen, MQTTClient_message* message);
-
361 
- -
383 
-
399 typedef void MQTTClient_connectionLost(void* context, char* cause);
-
400 
-
429 LIBMQTT_API int MQTTClient_setCallbacks(MQTTClient handle, void* context, MQTTClient_connectionLost* cl,
- -
431 
-
432 
-
442 typedef void MQTTClient_disconnected(void* context, MQTTProperties* properties,
-
443  enum MQTTReasonCodes reasonCode);
-
444 
-
458 LIBMQTT_API int MQTTClient_setDisconnected(MQTTClient handle, void* context, MQTTClient_disconnected* co);
-
459 
-
483 typedef void MQTTClient_published(void* context, int dt, int packet_type, MQTTProperties* properties,
-
484  enum MQTTReasonCodes reasonCode);
-
485 
-
486 LIBMQTT_API int MQTTClient_setPublished(MQTTClient handle, void* context, MQTTClient_published* co);
-
487 
-
532 LIBMQTT_API int MQTTClient_create(MQTTClient* handle, const char* serverURI, const char* clientId,
-
533  int persistence_type, void* persistence_context);
-
534 
-
536 typedef struct
-
537 {
-
539  char struct_id[4];
- - - -
549 
-
550 #define MQTTClient_createOptions_initializer { {'M', 'Q', 'C', 'O'}, 0, MQTTVERSION_DEFAULT }
-
551 
-
596 LIBMQTT_API int MQTTClient_createWithOptions(MQTTClient* handle, const char* serverURI, const char* clientId,
-
597  int persistence_type, void* persistence_context, MQTTClient_createOptions* options);
-
598 
-
611 typedef struct
-
612 {
-
614  char struct_id[4];
- -
620  const char* topicName;
-
622  const char* message;
-
626  int retained;
-
631  int qos;
-
633  struct
-
634  {
-
635  int len;
-
636  const void* data;
-
637  } payload;
- -
639 
-
640 #define MQTTClient_willOptions_initializer { {'M', 'Q', 'T', 'W'}, 1, NULL, NULL, 0, 0, {0, NULL} }
-
641 
-
642 #define MQTT_SSL_VERSION_DEFAULT 0
-
643 #define MQTT_SSL_VERSION_TLS_1_0 1
-
644 #define MQTT_SSL_VERSION_TLS_1_1 2
-
645 #define MQTT_SSL_VERSION_TLS_1_2 3
-
646 
-
659 typedef struct
-
660 {
-
662  char struct_id[4];
-
663 
- -
672 
-
674  const char* trustStore;
+
224 #define MQTT_BAD_SUBSCRIBE 0x80
+
225 
+
229 typedef struct
+
230 {
+
232  char struct_id[4];
+ + + +
238 
+
239 #define MQTTClient_init_options_initializer { {'M', 'Q', 'T', 'G'}, 0, 0 }
+
240 
+
245 LIBMQTT_API void MQTTClient_global_init(MQTTClient_init_options* inits);
+
246 
+
251 typedef void* MQTTClient;
+ +
263 typedef int MQTTClient_token;
+
264 
+
271 typedef struct
+
272 {
+
274  char struct_id[4];
+ + +
281  void* payload;
+
295  int qos;
+
314  int retained;
+
321  int dup;
+
325  int msgid;
+ + +
331 
+
332 #define MQTTClient_message_initializer { {'M', 'Q', 'T', 'M'}, 1, 0, NULL, 0, 0, 0, 0, MQTTProperties_initializer }
+
333 
+
364 typedef int MQTTClient_messageArrived(void* context, char* topicName, int topicLen, MQTTClient_message* message);
+
365 
+ +
387 
+
403 typedef void MQTTClient_connectionLost(void* context, char* cause);
+
404 
+
433 LIBMQTT_API int MQTTClient_setCallbacks(MQTTClient handle, void* context, MQTTClient_connectionLost* cl,
+ +
435 
+
436 
+
446 typedef void MQTTClient_disconnected(void* context, MQTTProperties* properties,
+
447  enum MQTTReasonCodes reasonCode);
+
448 
+
462 LIBMQTT_API int MQTTClient_setDisconnected(MQTTClient handle, void* context, MQTTClient_disconnected* co);
+
463 
+
487 typedef void MQTTClient_published(void* context, int dt, int packet_type, MQTTProperties* properties,
+
488  enum MQTTReasonCodes reasonCode);
+
489 
+
490 LIBMQTT_API int MQTTClient_setPublished(MQTTClient handle, void* context, MQTTClient_published* co);
+
491 
+
544 LIBMQTT_API int MQTTClient_create(MQTTClient* handle, const char* serverURI, const char* clientId,
+
545  int persistence_type, void* persistence_context);
+
546 
+
548 typedef struct
+
549 {
+
551  char struct_id[4];
+ + + +
561 
+
562 #define MQTTClient_createOptions_initializer { {'M', 'Q', 'C', 'O'}, 0, MQTTVERSION_DEFAULT }
+
563 
+
608 LIBMQTT_API int MQTTClient_createWithOptions(MQTTClient* handle, const char* serverURI, const char* clientId,
+
609  int persistence_type, void* persistence_context, MQTTClient_createOptions* options);
+
610 
+
623 typedef struct
+
624 {
+
626  char struct_id[4];
+ +
632  const char* topicName;
+
634  const char* message;
+
638  int retained;
+
643  int qos;
+
645  struct
+
646  {
+
647  int len;
+
648  const void* data;
+
649  } payload;
+ +
651 
+
652 #define MQTTClient_willOptions_initializer { {'M', 'Q', 'T', 'W'}, 1, NULL, NULL, 0, 0, {0, NULL} }
+
653 
+
654 #define MQTT_SSL_VERSION_DEFAULT 0
+
655 #define MQTT_SSL_VERSION_TLS_1_0 1
+
656 #define MQTT_SSL_VERSION_TLS_1_1 2
+
657 #define MQTT_SSL_VERSION_TLS_1_2 3
+
658 
+
671 typedef struct
+
672 {
+
674  char struct_id[4];
675 
-
679  const char* keyStore;
-
680 
-
684  const char* privateKey;
-
685 
-
687  const char* privateKeyPassword;
-
688 
-
697  const char* enabledCipherSuites;
-
698 
- -
701 
- -
707 
-
713  int verify;
-
714 
-
720  const char* CApath;
-
721 
-
726  int (*ssl_error_cb) (const char *str, size_t len, void *u);
-
727 
- + +
684 
+
686  const char* trustStore;
+
687 
+
691  const char* keyStore;
+
692 
+
696  const char* privateKey;
+
697 
+
699  const char* privateKeyPassword;
+
700 
+
709  const char* enabledCipherSuites;
+
710 
+ +
713 
+ +
719 
+
725  int verify;
+
726 
+
732  const char* CApath;
733 
-
739  unsigned int (*ssl_psk_cb) (const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u);
-
740 
- -
746 
- -
753 
-
761  const unsigned char *protos;
-
762 
-
767  unsigned int protos_len;
- -
769 
-
770 #define MQTTClient_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 5, NULL, NULL, NULL, NULL, NULL, 1, MQTT_SSL_VERSION_DEFAULT, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0 }
-
771 
-
779 typedef struct
-
780 {
-
781  const char* name;
-
782  const char* value;
- -
784 
- -
791 
-
806 typedef struct
-
807 {
-
809  char struct_id[4];
- - - -
862  int reliable;
- -
874  const char* username;
-
880  const char* password;
- - - - -
915  char* const* serverURIs;
- -
927  struct
-
928  {
-
929  const char* serverURI;
-
930  int MQTTVersion;
- -
932  } returned;
-
936  struct
-
937  {
-
938  int len;
-
939  const void* data;
-
940  } binarypwd;
- -
945  /*
-
946  * MQTT V5 clean start flag. Only clears state at the beginning of the session.
-
947  */
- - -
956  const char* httpProxy;
-
960  const char* httpsProxy;
- -
962 
-
963 #define MQTTClient_connectOptions_initializer { {'M', 'Q', 'T', 'C'}, 8, 60, 1, 1, NULL, NULL, NULL, 30, 0, NULL,\
-
964 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, -1, 0, NULL, NULL, NULL}
-
965 
-
966 #define MQTTClient_connectOptions_initializer5 { {'M', 'Q', 'T', 'C'}, 8, 60, 0, 1, NULL, NULL, NULL, 30, 0, NULL,\
-
967 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, -1, 1, NULL, NULL, NULL}
-
968 
-
969 #define MQTTClient_connectOptions_initializer_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 1, 1, NULL, NULL, NULL, 30, 0, NULL,\
-
970 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, -1, 0, NULL, NULL, NULL}
-
971 
-
972 #define MQTTClient_connectOptions_initializer5_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 0, 1, NULL, NULL, NULL, 30, 0, NULL,\
-
973 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, -1, 1, NULL, NULL, NULL}
-
974 
-
995 LIBMQTT_API int MQTTClient_connect(MQTTClient handle, MQTTClient_connectOptions* options);
-
996 
-
998 typedef struct MQTTResponse
-
999 {
-
1000  int version; /* the version number of this structure */
-
1001  enum MQTTReasonCodes reasonCode; /* the MQTT 5.0 reason code returned */
-
1002  int reasonCodeCount; /* the number of reason codes. Used for subscribeMany5 and unsubscribeMany5 */
-
1003  enum MQTTReasonCodes* reasonCodes; /* a list of reason codes. Used for subscribeMany5 and unsubscribeMany5 */
-
1004  MQTTProperties* properties; /* optionally, the MQTT 5.0 properties returned */
-
1005 } MQTTResponse;
-
1006 
-
1007 #define MQTTResponse_initializer {1, MQTTREASONCODE_SUCCESS, 0, NULL, NULL}
-
1008 
-
1013 LIBMQTT_API void MQTTResponse_free(MQTTResponse response);
-
1014 
- -
1029  MQTTProperties* connectProperties, MQTTProperties* willProperties);
-
1030 
-
1049 LIBMQTT_API int MQTTClient_disconnect(MQTTClient handle, int timeout);
-
1050 
-
1051 LIBMQTT_API int MQTTClient_disconnect5(MQTTClient handle, int timeout, enum MQTTReasonCodes reason, MQTTProperties* props);
-
1052 
-
1060 LIBMQTT_API int MQTTClient_isConnected(MQTTClient handle);
-
1061 
-
1062 
-
1063 /* Subscribe is synchronous. QoS list parameter is changed on return to granted QoSs.
-
1064  Returns return code, MQTTCLIENT_SUCCESS == success, non-zero some sort of error (TBD) */
-
1065 
-
1079 LIBMQTT_API int MQTTClient_subscribe(MQTTClient handle, const char* topic, int qos);
-
1080 
-
1094 LIBMQTT_API MQTTResponse MQTTClient_subscribe5(MQTTClient handle, const char* topic, int qos,
-
1095  MQTTSubscribe_options* opts, MQTTProperties* props);
-
1096 
-
1113 LIBMQTT_API int MQTTClient_subscribeMany(MQTTClient handle, int count, char* const* topic, int* qos);
-
1114 
-
1131 LIBMQTT_API MQTTResponse MQTTClient_subscribeMany5(MQTTClient handle, int count, char* const* topic,
-
1132  int* qos, MQTTSubscribe_options* opts, MQTTProperties* props);
-
1133 
-
1145 LIBMQTT_API int MQTTClient_unsubscribe(MQTTClient handle, const char* topic);
-
1146 
-
1157 LIBMQTT_API MQTTResponse MQTTClient_unsubscribe5(MQTTClient handle, const char* topic, MQTTProperties* props);
-
1158 
-
1170 LIBMQTT_API int MQTTClient_unsubscribeMany(MQTTClient handle, int count, char* const* topic);
-
1171 
-
1183 LIBMQTT_API MQTTResponse MQTTClient_unsubscribeMany5(MQTTClient handle, int count, char* const* topic, MQTTProperties* props);
+
738  int (*ssl_error_cb) (const char *str, size_t len, void *u);
+
739 
+ +
745 
+
751  unsigned int (*ssl_psk_cb) (const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u);
+
752 
+ +
758 
+ +
765 
+
773  const unsigned char *protos;
+
774 
+
779  unsigned int protos_len;
+ +
781 
+
782 #define MQTTClient_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 5, NULL, NULL, NULL, NULL, NULL, 1, MQTT_SSL_VERSION_DEFAULT, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0 }
+
783 
+
791 typedef struct
+
792 {
+
793  const char* name;
+
794  const char* value;
+ +
796 
+ +
803 
+
824 typedef struct
+
825 {
+
827  char struct_id[4];
+ + + +
880  int reliable;
+ +
892  const char* username;
+
898  const char* password;
+ + + + +
933  char* const* serverURIs;
+ +
945  struct
+
946  {
+
947  const char* serverURI;
+
948  int MQTTVersion;
+ +
950  } returned;
+
954  struct
+
955  {
+
956  int len;
+
957  const void* data;
+
958  } binarypwd;
+ +
963  /*
+
964  * MQTT V5 clean start flag. Only clears state at the beginning of the session.
+
965  */
+ + +
974  const char* httpProxy;
+
978  const char* httpsProxy;
+ +
980 
+
982 #define MQTTClient_connectOptions_initializer { {'M', 'Q', 'T', 'C'}, 8, 60, 1, 1, NULL, NULL, NULL, 30, 0, NULL,\
+
983 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, -1, 0, NULL, NULL, NULL}
+
984 
+
986 #define MQTTClient_connectOptions_initializer5 { {'M', 'Q', 'T', 'C'}, 8, 60, 0, 1, NULL, NULL, NULL, 30, 0, NULL,\
+
987 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, -1, 1, NULL, NULL, NULL}
+
988 
+
992 #define MQTTClient_connectOptions_initializer_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 1, 1, NULL, NULL, NULL, 30, 0, NULL,\
+
993 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, -1, 0, NULL, NULL, NULL}
+
994 
+
998 #define MQTTClient_connectOptions_initializer5_ws { {'M', 'Q', 'T', 'C'}, 8, 45, 0, 1, NULL, NULL, NULL, 30, 0, NULL,\
+
999 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, -1, 1, NULL, NULL, NULL}
+
1000 
+
1021 LIBMQTT_API int MQTTClient_connect(MQTTClient handle, MQTTClient_connectOptions* options);
+
1022 
+
1024 typedef struct MQTTResponse
+
1025 {
+
1026  int version; /* the version number of this structure */
+
1027  enum MQTTReasonCodes reasonCode; /* the MQTT 5.0 reason code returned */
+
1028  int reasonCodeCount; /* the number of reason codes. Used for subscribeMany5 and unsubscribeMany5 */
+
1029  enum MQTTReasonCodes* reasonCodes; /* a list of reason codes. Used for subscribeMany5 and unsubscribeMany5 */
+
1030  MQTTProperties* properties; /* optionally, the MQTT 5.0 properties returned */
+
1031 } MQTTResponse;
+
1032 
+
1033 #define MQTTResponse_initializer {1, MQTTREASONCODE_SUCCESS, 0, NULL, NULL}
+
1034 
+
1039 LIBMQTT_API void MQTTResponse_free(MQTTResponse response);
+
1040 
+ +
1055  MQTTProperties* connectProperties, MQTTProperties* willProperties);
+
1056 
+
1075 LIBMQTT_API int MQTTClient_disconnect(MQTTClient handle, int timeout);
+
1076 
+
1077 LIBMQTT_API int MQTTClient_disconnect5(MQTTClient handle, int timeout, enum MQTTReasonCodes reason, MQTTProperties* props);
+
1078 
+
1086 LIBMQTT_API int MQTTClient_isConnected(MQTTClient handle);
+
1087 
+
1088 
+
1089 /* Subscribe is synchronous. QoS list parameter is changed on return to granted QoSs.
+
1090  Returns return code, MQTTCLIENT_SUCCESS == success, non-zero some sort of error (TBD) */
+
1091 
+
1105 LIBMQTT_API int MQTTClient_subscribe(MQTTClient handle, const char* topic, int qos);
+
1106 
+
1120 LIBMQTT_API MQTTResponse MQTTClient_subscribe5(MQTTClient handle, const char* topic, int qos,
+
1121  MQTTSubscribe_options* opts, MQTTProperties* props);
+
1122 
+
1139 LIBMQTT_API int MQTTClient_subscribeMany(MQTTClient handle, int count, char* const* topic, int* qos);
+
1140 
+
1157 LIBMQTT_API MQTTResponse MQTTClient_subscribeMany5(MQTTClient handle, int count, char* const* topic,
+
1158  int* qos, MQTTSubscribe_options* opts, MQTTProperties* props);
+
1159 
+
1171 LIBMQTT_API int MQTTClient_unsubscribe(MQTTClient handle, const char* topic);
+
1172 
+
1183 LIBMQTT_API MQTTResponse MQTTClient_unsubscribe5(MQTTClient handle, const char* topic, MQTTProperties* props);
1184 
-
1206 LIBMQTT_API int MQTTClient_publish(MQTTClient handle, const char* topicName, int payloadlen, const void* payload, int qos, int retained,
- -
1208 
-
1230 LIBMQTT_API MQTTResponse MQTTClient_publish5(MQTTClient handle, const char* topicName, int payloadlen, const void* payload,
-
1231  int qos, int retained, MQTTProperties* properties, MQTTClient_deliveryToken* dt);
-
1251 LIBMQTT_API int MQTTClient_publishMessage(MQTTClient handle, const char* topicName, MQTTClient_message* msg, MQTTClient_deliveryToken* dt);
-
1252 
-
1253 
-
1273 LIBMQTT_API MQTTResponse MQTTClient_publishMessage5(MQTTClient handle, const char* topicName, MQTTClient_message* msg,
- -
1275 
-
1291 LIBMQTT_API int MQTTClient_waitForCompletion(MQTTClient handle, MQTTClient_deliveryToken dt, unsigned long timeout);
-
1292 
-
1293 
- -
1313 
-
1320 LIBMQTT_API void MQTTClient_yield(void);
-
1321 
-
1353 LIBMQTT_API int MQTTClient_receive(MQTTClient handle, char** topicName, int* topicLen, MQTTClient_message** message,
-
1354  unsigned long timeout);
-
1355 
-
1366 LIBMQTT_API void MQTTClient_freeMessage(MQTTClient_message** msg);
-
1367 
-
1376 LIBMQTT_API void MQTTClient_free(void* ptr);
-
1377 
-
1385 LIBMQTT_API void MQTTClient_destroy(MQTTClient* handle);
-
1386 
-
1387 
- -
1389 {
- - - - - - - -
1397 };
-
1398 
-
1399 
-
1405 LIBMQTT_API void MQTTClient_setTraceLevel(enum MQTTCLIENT_TRACE_LEVELS level);
-
1406 
-
1407 
-
1417 typedef void MQTTClient_traceCallback(enum MQTTCLIENT_TRACE_LEVELS level, char* message);
-
1418 
-
1425 LIBMQTT_API void MQTTClient_setTraceCallback(MQTTClient_traceCallback* callback);
-
1426 
-
1434 LIBMQTT_API int MQTTClient_setCommandTimeout(MQTTClient handle, unsigned long milliSeconds);
-
1435 
-
1441 LIBMQTT_API const char* MQTTClient_strerror(int code);
-
1442 
-
1443 #if defined(__cplusplus)
-
1444  }
-
1445 #endif
-
1446 
-
1447 #endif
-
1448 
+
1196 LIBMQTT_API int MQTTClient_unsubscribeMany(MQTTClient handle, int count, char* const* topic);
+
1197 
+
1209 LIBMQTT_API MQTTResponse MQTTClient_unsubscribeMany5(MQTTClient handle, int count, char* const* topic, MQTTProperties* props);
+
1210 
+
1232 LIBMQTT_API int MQTTClient_publish(MQTTClient handle, const char* topicName, int payloadlen, const void* payload, int qos, int retained,
+ +
1234 
+
1256 LIBMQTT_API MQTTResponse MQTTClient_publish5(MQTTClient handle, const char* topicName, int payloadlen, const void* payload,
+
1257  int qos, int retained, MQTTProperties* properties, MQTTClient_deliveryToken* dt);
+
1277 LIBMQTT_API int MQTTClient_publishMessage(MQTTClient handle, const char* topicName, MQTTClient_message* msg, MQTTClient_deliveryToken* dt);
+
1278 
+
1279 
+
1299 LIBMQTT_API MQTTResponse MQTTClient_publishMessage5(MQTTClient handle, const char* topicName, MQTTClient_message* msg,
+ +
1301 
+
1317 LIBMQTT_API int MQTTClient_waitForCompletion(MQTTClient handle, MQTTClient_deliveryToken dt, unsigned long timeout);
+
1318 
+
1319 
+ +
1339 
+
1346 LIBMQTT_API void MQTTClient_yield(void);
+
1347 
+
1379 LIBMQTT_API int MQTTClient_receive(MQTTClient handle, char** topicName, int* topicLen, MQTTClient_message** message,
+
1380  unsigned long timeout);
+
1381 
+
1392 LIBMQTT_API void MQTTClient_freeMessage(MQTTClient_message** msg);
+
1393 
+
1402 LIBMQTT_API void MQTTClient_free(void* ptr);
+
1403 
+
1411 LIBMQTT_API void MQTTClient_destroy(MQTTClient* handle);
+
1412 
+
1413 
+ +
1415 {
+ + + + + + + +
1423 };
+
1424 
+
1425 
+
1431 LIBMQTT_API void MQTTClient_setTraceLevel(enum MQTTCLIENT_TRACE_LEVELS level);
+
1432 
+
1433 
+
1443 typedef void MQTTClient_traceCallback(enum MQTTCLIENT_TRACE_LEVELS level, char* message);
+
1444 
+
1451 LIBMQTT_API void MQTTClient_setTraceCallback(MQTTClient_traceCallback* callback);
+
1452 
+
1460 LIBMQTT_API int MQTTClient_setCommandTimeout(MQTTClient handle, unsigned long milliSeconds);
+
1461 
+
1467 LIBMQTT_API const char* MQTTClient_strerror(int code);
+
1468 
+
1469 #if defined(__cplusplus)
+
1470  }
+
1471 #endif
+
1472 
+
1473 #endif
+
1474 
-
int qos
Definition: MQTTClient.h:631
-
enum MQTTReasonCodes reasonCode
Definition: MQTTClient.h:1001
-
@ MQTTCLIENT_TRACE_MEDIUM
Definition: MQTTClient.h:1391
-
int do_openssl_init
Definition: MQTTClient.h:232
-
int retained
Definition: MQTTClient.h:310
+
int qos
Definition: MQTTClient.h:643
+
enum MQTTReasonCodes reasonCode
Definition: MQTTClient.h:1027
+
@ MQTTCLIENT_TRACE_MEDIUM
Definition: MQTTClient.h:1417
+
int do_openssl_init
Definition: MQTTClient.h:236
+
int retained
Definition: MQTTClient.h:314
int MQTTClient_publish(MQTTClient handle, const char *topicName, int payloadlen, const void *payload, int qos, int retained, MQTTClient_deliveryToken *dt)
-
const void * data
Definition: MQTTClient.h:636
-
const char * trustStore
Definition: MQTTClient.h:674
+
const void * data
Definition: MQTTClient.h:648
+
const char * trustStore
Definition: MQTTClient.h:686
int MQTTClient_subscribeMany(MQTTClient handle, int count, char *const *topic, int *qos)
-
const unsigned char * protos
Definition: MQTTClient.h:761
+
const unsigned char * protos
Definition: MQTTClient.h:773
int MQTTClient_setDisconnected(MQTTClient handle, void *context, MQTTClient_disconnected *co)
-
@ MQTTCLIENT_TRACE_PROTOCOL
Definition: MQTTClient.h:1393
+
@ MQTTCLIENT_TRACE_PROTOCOL
Definition: MQTTClient.h:1419
const char * MQTTClient_strerror(int code)
-
void * ssl_psk_context
Definition: MQTTClient.h:745
-
int keepAliveInterval
Definition: MQTTClient.h:830
-
int payloadlen
Definition: MQTTClient.h:275
+
void * ssl_psk_context
Definition: MQTTClient.h:757
+
int keepAliveInterval
Definition: MQTTClient.h:848
+
int payloadlen
Definition: MQTTClient.h:279
Definition: MQTTProperties.h:112
-
MQTTClient_willOptions * will
Definition: MQTTClient.h:868
-
int retryInterval
Definition: MQTTClient.h:892
-
void * ssl_error_context
Definition: MQTTClient.h:732
+
MQTTClient_willOptions * will
Definition: MQTTClient.h:886
+
int retryInterval
Definition: MQTTClient.h:910
+
void * ssl_error_context
Definition: MQTTClient.h:744
void MQTTClient_setTraceCallback(MQTTClient_traceCallback *callback)
-
Definition: MQTTClient.h:536
+
Definition: MQTTClient.h:548
int MQTTClient_unsubscribe(MQTTClient handle, const char *topic)
-
const char * message
Definition: MQTTClient.h:622
-
const MQTTClient_nameValue * httpHeaders
Definition: MQTTClient.h:952
-
const char * value
Definition: MQTTClient.h:782
+
const char * message
Definition: MQTTClient.h:634
+
const MQTTClient_nameValue * httpHeaders
Definition: MQTTClient.h:970
+
const char * value
Definition: MQTTClient.h:794
int MQTTClient_receive(MQTTClient handle, char **topicName, int *topicLen, MQTTClient_message **message, unsigned long timeout)
-
int MQTTClient_messageArrived(void *context, char *topicName, int topicLen, MQTTClient_message *message)
Definition: MQTTClient.h:360
+
int MQTTClient_messageArrived(void *context, char *topicName, int topicLen, MQTTClient_message *message)
Definition: MQTTClient.h:364
void MQTTClient_freeMessage(MQTTClient_message **msg)
MQTTResponse MQTTClient_unsubscribe5(MQTTClient handle, const char *topic, MQTTProperties *props)
-
const char * name
Definition: MQTTClient.h:781
-
int struct_version
Definition: MQTTClient.h:618
-
int disableDefaultTrustStore
Definition: MQTTClient.h:752
+
const char * name
Definition: MQTTClient.h:793
+
int struct_version
Definition: MQTTClient.h:630
+
int disableDefaultTrustStore
Definition: MQTTClient.h:764
MQTTResponse MQTTClient_publish5(MQTTClient handle, const char *topicName, int payloadlen, const void *payload, int qos, int retained, MQTTProperties *properties, MQTTClient_deliveryToken *dt)
-
int cleanstart
Definition: MQTTClient.h:948
-
int sessionPresent
Definition: MQTTClient.h:931
-
Definition: MQTTClient.h:267
-
const char * serverURI
Definition: MQTTClient.h:929
+
int cleanstart
Definition: MQTTClient.h:966
+
int sessionPresent
Definition: MQTTClient.h:949
+
Definition: MQTTClient.h:271
+
const char * serverURI
Definition: MQTTClient.h:947
MQTTResponse MQTTClient_subscribe5(MQTTClient handle, const char *topic, int qos, MQTTSubscribe_options *opts, MQTTProperties *props)
-
char *const * serverURIs
Definition: MQTTClient.h:915
-
Definition: MQTTClient.h:659
-
MQTTProperties properties
Definition: MQTTClient.h:325
-
int qos
Definition: MQTTClient.h:291
+
char *const * serverURIs
Definition: MQTTClient.h:933
+
Definition: MQTTClient.h:671
+
MQTTProperties properties
Definition: MQTTClient.h:329
+
int qos
Definition: MQTTClient.h:295
void MQTTClient_yield(void)
-
int struct_version
Definition: MQTTClient.h:541
-
@ MQTTCLIENT_TRACE_ERROR
Definition: MQTTClient.h:1394
-
int maxInflightMessages
Definition: MQTTClient.h:944
-
void MQTTClient_deliveryComplete(void *context, MQTTClient_deliveryToken dt)
Definition: MQTTClient.h:382
-
int MQTTClient_token
Definition: MQTTClient.h:259
+
int struct_version
Definition: MQTTClient.h:553
+
@ MQTTCLIENT_TRACE_ERROR
Definition: MQTTClient.h:1420
+
int maxInflightMessages
Definition: MQTTClient.h:962
+
void MQTTClient_deliveryComplete(void *context, MQTTClient_deliveryToken dt)
Definition: MQTTClient.h:386
+
int MQTTClient_token
Definition: MQTTClient.h:263
-
int struct_version
Definition: MQTTClient.h:820
+
int struct_version
Definition: MQTTClient.h:838
void MQTTClient_setTraceLevel(enum MQTTCLIENT_TRACE_LEVELS level)
-
@ MQTTCLIENT_TRACE_FATAL
Definition: MQTTClient.h:1396
-
void MQTTClient_traceCallback(enum MQTTCLIENT_TRACE_LEVELS level, char *message)
Definition: MQTTClient.h:1417
-
int serverURIcount
Definition: MQTTClient.h:901
+
@ MQTTCLIENT_TRACE_FATAL
Definition: MQTTClient.h:1422
+
void MQTTClient_traceCallback(enum MQTTCLIENT_TRACE_LEVELS level, char *message)
Definition: MQTTClient.h:1443
+
int serverURIcount
Definition: MQTTClient.h:919
int MQTTClient_subscribe(MQTTClient handle, const char *topic, int qos)
-
int MQTTClient_deliveryToken
Definition: MQTTClient.h:258
+
int MQTTClient_deliveryToken
Definition: MQTTClient.h:262
int MQTTClient_waitForCompletion(MQTTClient handle, MQTTClient_deliveryToken dt, unsigned long timeout)
int MQTTClient_setCallbacks(MQTTClient handle, void *context, MQTTClient_connectionLost *cl, MQTTClient_messageArrived *ma, MQTTClient_deliveryComplete *dc)
-
const char * password
Definition: MQTTClient.h:880
-
Definition: MQTTClient.h:611
-
const char * privateKeyPassword
Definition: MQTTClient.h:687
-
const void * data
Definition: MQTTClient.h:939
+
const char * password
Definition: MQTTClient.h:898
+
Definition: MQTTClient.h:623
+
const char * privateKeyPassword
Definition: MQTTClient.h:699
+
const void * data
Definition: MQTTClient.h:957
void MQTTClient_global_init(MQTTClient_init_options *inits)
-
void MQTTClient_connectionLost(void *context, char *cause)
Definition: MQTTClient.h:399
-
void MQTTClient_published(void *context, int dt, int packet_type, MQTTProperties *properties, enum MQTTReasonCodes reasonCode)
Definition: MQTTClient.h:483
-
void * payload
Definition: MQTTClient.h:277
+
void MQTTClient_connectionLost(void *context, char *cause)
Definition: MQTTClient.h:403
+
void MQTTClient_published(void *context, int dt, int packet_type, MQTTProperties *properties, enum MQTTReasonCodes reasonCode)
Definition: MQTTClient.h:487
+
void * payload
Definition: MQTTClient.h:281
void MQTTResponse_free(MQTTResponse response)
struct MQTTResponse MQTTResponse
-
int MQTTVersion
Definition: MQTTClient.h:923
-
MQTTProperties * properties
Definition: MQTTClient.h:1004
+
int MQTTVersion
Definition: MQTTClient.h:941
+
MQTTProperties * properties
Definition: MQTTClient.h:1030
-
const char * CApath
Definition: MQTTClient.h:720
-
int msgid
Definition: MQTTClient.h:321
-
const char * topicName
Definition: MQTTClient.h:620
-
void * MQTTClient
Definition: MQTTClient.h:247
+
const char * CApath
Definition: MQTTClient.h:732
+
int msgid
Definition: MQTTClient.h:325
+
const char * topicName
Definition: MQTTClient.h:632
+
void * MQTTClient
Definition: MQTTClient.h:251
int MQTTClient_getPendingDeliveryTokens(MQTTClient handle, MQTTClient_deliveryToken **tokens)
-
Definition: MQTTClient.h:998
+
Definition: MQTTClient.h:1024
int MQTTClient_unsubscribeMany(MQTTClient handle, int count, char *const *topic)
-
const char * keyStore
Definition: MQTTClient.h:679
-
void MQTTClient_disconnected(void *context, MQTTProperties *properties, enum MQTTReasonCodes reasonCode)
Definition: MQTTClient.h:442
-
int struct_version
Definition: MQTTClient.h:273
+
const char * keyStore
Definition: MQTTClient.h:691
+
void MQTTClient_disconnected(void *context, MQTTProperties *properties, enum MQTTReasonCodes reasonCode)
Definition: MQTTClient.h:446
+
int struct_version
Definition: MQTTClient.h:277
MQTTResponse MQTTClient_publishMessage5(MQTTClient handle, const char *topicName, MQTTClient_message *msg, MQTTClient_deliveryToken *dt)
-
int verify
Definition: MQTTClient.h:713
-
const char * username
Definition: MQTTClient.h:874
-
@ MQTTCLIENT_TRACE_MAXIMUM
Definition: MQTTClient.h:1390
-
unsigned int protos_len
Definition: MQTTClient.h:767
-
@ MQTTCLIENT_TRACE_MINIMUM
Definition: MQTTClient.h:1392
-
MQTTCLIENT_TRACE_LEVELS
Definition: MQTTClient.h:1388
+
int verify
Definition: MQTTClient.h:725
+
const char * username
Definition: MQTTClient.h:892
+
@ MQTTCLIENT_TRACE_MAXIMUM
Definition: MQTTClient.h:1416
+
unsigned int protos_len
Definition: MQTTClient.h:779
+
@ MQTTCLIENT_TRACE_MINIMUM
Definition: MQTTClient.h:1418
+
MQTTCLIENT_TRACE_LEVELS
Definition: MQTTClient.h:1414
int MQTTClient_setCommandTimeout(MQTTClient handle, unsigned long milliSeconds)
Definition: MQTTSubscribeOpts.h:21
MQTTClient_nameValue * MQTTClient_getVersionInfo(void)
-
int len
Definition: MQTTClient.h:938
+
int len
Definition: MQTTClient.h:956
void MQTTClient_destroy(MQTTClient *handle)
-
Definition: MQTTClient.h:806
+
Definition: MQTTClient.h:824
int MQTTClient_publishMessage(MQTTClient handle, const char *topicName, MQTTClient_message *msg, MQTTClient_deliveryToken *dt)
int MQTTClient_connect(MQTTClient handle, MQTTClient_connectOptions *options)
-
int struct_version
Definition: MQTTClient.h:671
+
int struct_version
Definition: MQTTClient.h:683
int MQTTClient_createWithOptions(MQTTClient *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context, MQTTClient_createOptions *options)
-
Definition: MQTTClient.h:779
+
Definition: MQTTClient.h:791
int MQTTClient_setPublished(MQTTClient handle, void *context, MQTTClient_published *co)
-
int dup
Definition: MQTTClient.h:317
+
int dup
Definition: MQTTClient.h:321
MQTTResponse MQTTClient_subscribeMany5(MQTTClient handle, int count, char *const *topic, int *qos, MQTTSubscribe_options *opts, MQTTProperties *props)
-
const char * httpsProxy
Definition: MQTTClient.h:960
-
Definition: MQTTClient.h:225
-
enum MQTTReasonCodes * reasonCodes
Definition: MQTTClient.h:1003
-
int enableServerCertAuth
Definition: MQTTClient.h:700
+
const char * httpsProxy
Definition: MQTTClient.h:978
+
Definition: MQTTClient.h:229
+
enum MQTTReasonCodes * reasonCodes
Definition: MQTTClient.h:1029
+
int enableServerCertAuth
Definition: MQTTClient.h:712
MQTTResponse MQTTClient_unsubscribeMany5(MQTTClient handle, int count, char *const *topic, MQTTProperties *props)
-
const char * privateKey
Definition: MQTTClient.h:684
-
@ MQTTCLIENT_TRACE_SEVERE
Definition: MQTTClient.h:1395
+
const char * privateKey
Definition: MQTTClient.h:696
+
@ MQTTCLIENT_TRACE_SEVERE
Definition: MQTTClient.h:1421
int MQTTClient_disconnect(MQTTClient handle, int timeout)
-
int reasonCodeCount
Definition: MQTTClient.h:1002
-
int retained
Definition: MQTTClient.h:626
-
int reliable
Definition: MQTTClient.h:862
-
int version
Definition: MQTTClient.h:1000
-
int sslVersion
Definition: MQTTClient.h:706
+
int reasonCodeCount
Definition: MQTTClient.h:1028
+
int retained
Definition: MQTTClient.h:638
+
int reliable
Definition: MQTTClient.h:880
+
int version
Definition: MQTTClient.h:1026
+
int sslVersion
Definition: MQTTClient.h:718
MQTTResponse MQTTClient_connect5(MQTTClient handle, MQTTClient_connectOptions *options, MQTTProperties *connectProperties, MQTTProperties *willProperties)
-
int cleansession
Definition: MQTTClient.h:852
-
int MQTTVersion
Definition: MQTTClient.h:547
-
const char * enabledCipherSuites
Definition: MQTTClient.h:697
+
int cleansession
Definition: MQTTClient.h:870
+
int MQTTVersion
Definition: MQTTClient.h:559
+
const char * enabledCipherSuites
Definition: MQTTClient.h:709
This structure represents a persistent data store, used to store outbound and inbound messages,...
-
const char * httpProxy
Definition: MQTTClient.h:956
+
const char * httpProxy
Definition: MQTTClient.h:974
int MQTTClient_disconnect5(MQTTClient handle, int timeout, enum MQTTReasonCodes reason, MQTTProperties *props)
-
MQTTClient_SSLOptions * ssl
Definition: MQTTClient.h:897
-
int struct_version
Definition: MQTTClient.h:230
+
MQTTClient_SSLOptions * ssl
Definition: MQTTClient.h:915
+
int struct_version
Definition: MQTTClient.h:234
void MQTTClient_free(void *ptr)
int MQTTClient_isConnected(MQTTClient handle)
MQTTReasonCodes
Definition: MQTTReasonCodes.h:23
-
int len
Definition: MQTTClient.h:635
-
int connectTimeout
Definition: MQTTClient.h:884
+
int len
Definition: MQTTClient.h:647
+
int connectTimeout
Definition: MQTTClient.h:902
int MQTTClient_create(MQTTClient *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context)
diff --git a/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h.html b/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h.html index b5559ccd4..f0247f1a7 100644 --- a/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h.html +++ b/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h.html @@ -443,7 +443,7 @@

diff --git a/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h_source.html b/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h_source.html index a1617bf4b..b097661b4 100644 --- a/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h_source.html +++ b/docs/MQTTClient/html/_m_q_t_t_client_persistence_8h_source.html @@ -155,7 +155,7 @@
int(* Persistence_close)(void *handle)
Close the persistent store referred to by the handle.
Definition: MQTTClientPersistence.h:123
diff --git a/docs/MQTTClient/html/_m_q_t_t_properties_8h.html b/docs/MQTTClient/html/_m_q_t_t_properties_8h.html index 76e4c37f2..ba2da5a74 100644 --- a/docs/MQTTClient/html/_m_q_t_t_properties_8h.html +++ b/docs/MQTTClient/html/_m_q_t_t_properties_8h.html @@ -794,7 +794,7 @@

diff --git a/docs/MQTTClient/html/_m_q_t_t_properties_8h_source.html b/docs/MQTTClient/html/_m_q_t_t_properties_8h_source.html index 4bd38f007..8519b6c18 100644 --- a/docs/MQTTClient/html/_m_q_t_t_properties_8h_source.html +++ b/docs/MQTTClient/html/_m_q_t_t_properties_8h_source.html @@ -257,7 +257,7 @@
@ MQTTPROPERTY_CODE_MAXIMUM_PACKET_SIZE
Definition: MQTTProperties.h:49
diff --git a/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h.html b/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h.html index 9966d03e4..d576b9a00 100644 --- a/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h.html +++ b/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h.html @@ -233,7 +233,7 @@

diff --git a/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h_source.html b/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h_source.html index 583db6cbc..d455fd10b 100644 --- a/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h_source.html +++ b/docs/MQTTClient/html/_m_q_t_t_reason_codes_8h_source.html @@ -188,7 +188,7 @@
@ MQTTREASONCODE_QOS_NOT_SUPPORTED
Definition: MQTTReasonCodes.h:75
diff --git a/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h.html b/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h.html index 0ddfe731e..1e63455f9 100644 --- a/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h.html +++ b/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h.html @@ -122,7 +122,7 @@

diff --git a/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h_source.html b/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h_source.html index 45a0bee5b..e6e19be4d 100644 --- a/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h_source.html +++ b/docs/MQTTClient/html/_m_q_t_t_subscribe_opts_8h_source.html @@ -107,7 +107,7 @@
char struct_id[4]
Definition: MQTTSubscribeOpts.h:38
diff --git a/docs/MQTTClient/html/annotated.html b/docs/MQTTClient/html/annotated.html index 6c2af811f..6add1b518 100644 --- a/docs/MQTTClient/html/annotated.html +++ b/docs/MQTTClient/html/annotated.html @@ -86,7 +86,7 @@ diff --git a/docs/MQTTClient/html/async.html b/docs/MQTTClient/html/async.html index abed867c3..78eed0294 100644 --- a/docs/MQTTClient/html/async.html +++ b/docs/MQTTClient/html/async.html @@ -73,7 +73,7 @@ diff --git a/docs/MQTTClient/html/callbacks.html b/docs/MQTTClient/html/callbacks.html index bc2c4bc55..cd5b403e8 100644 --- a/docs/MQTTClient/html/callbacks.html +++ b/docs/MQTTClient/html/callbacks.html @@ -74,7 +74,7 @@ diff --git a/docs/MQTTClient/html/classes.html b/docs/MQTTClient/html/classes.html index 7dc14c439..8443dae1a 100644 --- a/docs/MQTTClient/html/classes.html +++ b/docs/MQTTClient/html/classes.html @@ -92,7 +92,7 @@ diff --git a/docs/MQTTClient/html/files.html b/docs/MQTTClient/html/files.html index a787de9a4..467f84ce1 100644 --- a/docs/MQTTClient/html/files.html +++ b/docs/MQTTClient/html/files.html @@ -78,7 +78,7 @@ diff --git a/docs/MQTTClient/html/functions.html b/docs/MQTTClient/html/functions.html index 867093c25..367e9a07e 100644 --- a/docs/MQTTClient/html/functions.html +++ b/docs/MQTTClient/html/functions.html @@ -395,7 +395,7 @@

- w -

Detailed Description

MQTTClient_connectOptions defines several settings that control the way the client connects to an MQTT server.

-

Note: Default values are not defined for members of MQTTClient_connectOptions so it is good practice to specify all settings. If the MQTTClient_connectOptions structure is defined as an automatic variable, all members are set to random values and thus must be set by the client application. If the MQTTClient_connectOptions structure is defined as a static variable, initialization (in compliant compilers) sets all values to 0 (NULL for pointers). A keepAliveInterval setting of 0 prevents correct operation of the client and so you must at least set a value for keepAliveInterval.

+

Note: Default values are not defined for members of MQTTClient_connectOptions so it is good practice to specify all settings. If the MQTTClient_connectOptions structure is defined as an automatic variable, all members are set to random values and thus must be set by the client application. If the MQTTClient_connectOptions structure is defined as a static variable, initialization (in compliant compilers) sets all values to 0 (NULL for pointers). A keepAliveInterval setting of 0 prevents correct operation of the client and so you must at least set a value for keepAliveInterval.

+

Suitable default values are set in the following initializers:

    +
  • MQTTClient_connectOptions_initializer: for MQTT 3.1.1 non-WebSockets
  • +
  • MQTTClient_connectOptions_initializer5: for MQTT 5.0 non-WebSockets
  • +
  • MQTTClient_connectOptions_initializer_ws: for MQTT 3.1.1 WebSockets
  • +
  • MQTTClient_connectOptions_initializer5_ws: for MQTT 5.0 WebSockets
  • +

Field Documentation

◆ struct_id

@@ -514,7 +520,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_client__create_options.html b/docs/MQTTClient/html/struct_m_q_t_t_client__create_options.html index 7d7b42589..f296f2050 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_client__create_options.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_client__create_options.html @@ -135,7 +135,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_client__init__options.html b/docs/MQTTClient/html/struct_m_q_t_t_client__init__options.html index 349b7c2d6..94bc9040d 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_client__init__options.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_client__init__options.html @@ -134,7 +134,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_client__message.html b/docs/MQTTClient/html/struct_m_q_t_t_client__message.html index 0e75142cc..323c4ff41 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_client__message.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_client__message.html @@ -247,7 +247,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_client__name_value.html b/docs/MQTTClient/html/struct_m_q_t_t_client__name_value.html index 1ea0fa36e..2d9e203f7 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_client__name_value.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_client__name_value.html @@ -115,7 +115,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_client__persistence.html b/docs/MQTTClient/html/struct_m_q_t_t_client__persistence.html index fe228a105..ae295c630 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_client__persistence.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_client__persistence.html @@ -239,7 +239,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_client__will_options.html b/docs/MQTTClient/html/struct_m_q_t_t_client__will_options.html index 2ae1ab7a4..dca8f574f 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_client__will_options.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_client__will_options.html @@ -237,7 +237,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_len_string.html b/docs/MQTTClient/html/struct_m_q_t_t_len_string.html index 45dc10371..209e4c2c7 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_len_string.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_len_string.html @@ -117,7 +117,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_properties.html b/docs/MQTTClient/html/struct_m_q_t_t_properties.html index 4b432f21a..1606bcb03 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_properties.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_properties.html @@ -151,7 +151,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_property.html b/docs/MQTTClient/html/struct_m_q_t_t_property.html index 324e08003..37c52a57b 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_property.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_property.html @@ -206,7 +206,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_response.html b/docs/MQTTClient/html/struct_m_q_t_t_response.html index b289945bc..54f7f2e75 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_response.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_response.html @@ -163,7 +163,7 @@

diff --git a/docs/MQTTClient/html/struct_m_q_t_t_subscribe__options.html b/docs/MQTTClient/html/struct_m_q_t_t_subscribe__options.html index e36e465ce..bdad341d7 100644 --- a/docs/MQTTClient/html/struct_m_q_t_t_subscribe__options.html +++ b/docs/MQTTClient/html/struct_m_q_t_t_subscribe__options.html @@ -168,7 +168,7 @@

diff --git a/docs/MQTTClient/html/subasync.html b/docs/MQTTClient/html/subasync.html index fda9131e3..406f0c041 100644 --- a/docs/MQTTClient/html/subasync.html +++ b/docs/MQTTClient/html/subasync.html @@ -166,30 +166,30 @@
}
-
int keepAliveInterval
Definition: MQTTClient.h:830
-
int payloadlen
Definition: MQTTClient.h:275
+
int keepAliveInterval
Definition: MQTTClient.h:848
+
int payloadlen
Definition: MQTTClient.h:279
int MQTTClient_unsubscribe(MQTTClient handle, const char *topic)
void MQTTClient_freeMessage(MQTTClient_message **msg)
#define MQTTCLIENT_PERSISTENCE_NONE
Definition: MQTTClientPersistence.h:74
-
Definition: MQTTClient.h:267
-
#define MQTTClient_connectOptions_initializer
Definition: MQTTClient.h:963
+
Definition: MQTTClient.h:271
+
#define MQTTClient_connectOptions_initializer
Definition: MQTTClient.h:982
int MQTTClient_subscribe(MQTTClient handle, const char *topic, int qos)
-
int MQTTClient_deliveryToken
Definition: MQTTClient.h:258
+
int MQTTClient_deliveryToken
Definition: MQTTClient.h:262
int MQTTClient_setCallbacks(MQTTClient handle, void *context, MQTTClient_connectionLost *cl, MQTTClient_messageArrived *ma, MQTTClient_deliveryComplete *dc)
-
void * payload
Definition: MQTTClient.h:277
-
void * MQTTClient
Definition: MQTTClient.h:247
+
void * payload
Definition: MQTTClient.h:281
+
void * MQTTClient
Definition: MQTTClient.h:251
#define MQTTCLIENT_SUCCESS
Definition: MQTTClient.h:132
void MQTTClient_destroy(MQTTClient *handle)
-
Definition: MQTTClient.h:806
+
Definition: MQTTClient.h:824
int MQTTClient_connect(MQTTClient handle, MQTTClient_connectOptions *options)
int MQTTClient_disconnect(MQTTClient handle, int timeout)
-
int cleansession
Definition: MQTTClient.h:852
+
int cleansession
Definition: MQTTClient.h:870
void MQTTClient_free(void *ptr)
int MQTTClient_create(MQTTClient *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context)
diff --git a/docs/MQTTClient/html/tracing.html b/docs/MQTTClient/html/tracing.html index 27c8c4198..8b6699f62 100644 --- a/docs/MQTTClient/html/tracing.html +++ b/docs/MQTTClient/html/tracing.html @@ -127,7 +127,7 @@

Memory Allocation Tracing

int MQTTClient_connect(MQTTClient handle, MQTTClient_connectOptions *options)
diff --git a/docs/MQTTClient/html/wildcard.html b/docs/MQTTClient/html/wildcard.html index 65258d4cf..68a6c549f 100644 --- a/docs/MQTTClient/html/wildcard.html +++ b/docs/MQTTClient/html/wildcard.html @@ -81,7 +81,7 @@ diff --git a/docs/MQTTClient/man/man3/MQTTClient.h.3 b/docs/MQTTClient/man/man3/MQTTClient.h.3 index 30792cb2a..07396d5d5 100644 --- a/docs/MQTTClient/man/man3/MQTTClient.h.3 +++ b/docs/MQTTClient/man/man3/MQTTClient.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient.h" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient.h" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME @@ -329,7 +329,19 @@ Return code: Attempting SSL connection using non-SSL version of library .SS "#define MQTTCLIENT_BAD_MQTT_VERSION \-11" Return code: unrecognized MQTT version .SS "#define MQTTCLIENT_BAD_PROTOCOL \-14" -Return code: protocol prefix in serverURI should be tcp://, ssl://, ws:// or wss:// The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with\&. +Return code: protocol prefix in serverURI should be: +.PD 0 + +.IP "\(bu" 2 +\fItcp://\fP or \fImqtt://\fP - Insecure TCP +.IP "\(bu" 2 +\fIssl://\fP or \fImqtts://\fP - Encrypted SSL/TLS +.IP "\(bu" 2 +\fIws://\fP - Insecure websockets +.IP "\(bu" 2 +\fIwss://\fP - Secure web sockets The TLS enabled prefixes (ssl, mqtts, wss) are only valid if a TLS version of the library is linked with\&. +.PP + .SS "#define MQTTCLIENT_BAD_MQTT_OPTION \-15" Return code: option not applicable to the requested version of MQTT .SS "#define MQTTCLIENT_WRONG_MQTT_VERSION \-16" @@ -371,6 +383,7 @@ Bad return code from subscribe, as defined in the 3\&.1\&.1 specification { {'M', 'Q', 'T', 'C'}, 8, 60, 1, 1, NULL, NULL, NULL, 30, 0, NULL,\ 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, -1, 0, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 3\&.1\&.1 non-WebSocket connections .SS "#define MQTTClient_connectOptions_initializer5" \fBValue:\fP .PP @@ -378,6 +391,7 @@ Bad return code from subscribe, as defined in the 3\&.1\&.1 specification { {'M', 'Q', 'T', 'C'}, 8, 60, 0, 1, NULL, NULL, NULL, 30, 0, NULL,\ 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, -1, 1, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 5\&.0 non-WebSocket connections .SS "#define MQTTClient_connectOptions_initializer_ws" \fBValue:\fP .PP @@ -385,6 +399,7 @@ Bad return code from subscribe, as defined in the 3\&.1\&.1 specification { {'M', 'Q', 'T', 'C'}, 8, 45, 1, 1, NULL, NULL, NULL, 30, 0, NULL,\ 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, -1, 0, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 3\&.1\&.1 WebSockets connections\&. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts\&. .SS "#define MQTTClient_connectOptions_initializer5_ws" \fBValue:\fP .PP @@ -392,6 +407,7 @@ Bad return code from subscribe, as defined in the 3\&.1\&.1 specification { {'M', 'Q', 'T', 'C'}, 8, 45, 0, 1, NULL, NULL, NULL, 30, 0, NULL,\ 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, -1, 1, NULL, NULL, NULL} .fi +Initializer for connect options for MQTT 5\&.0 WebSockets connections\&. The keepalive interval is set to 45 seconds to avoid webserver 60 second inactivity timeouts\&. .SS "#define MQTTResponse_initializer {1, \fBMQTTREASONCODE_SUCCESS\fP, 0, NULL, NULL}" .SH "Typedef Documentation" @@ -567,7 +583,17 @@ This function creates an MQTT client ready for connection to the specified serve .RS 4 \fIhandle\fP A pointer to an \fBMQTTClient\fP handle\&. The handle is populated with a valid client reference following a successful return from this function\&. .br -\fIserverURI\fP A null-terminated string specifying the server to which the client will connect\&. It takes the form \fIprotocol://host:port\fP\&. Currently, \fIprotocol\fP must be \fItcp\fP, \fIssl\fP, \fIws\fP or \fIwss\fP\&. The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with\&. For \fIhost\fP, you can specify either an IP address or a host name\&. For instance, to connect to a server running on the local machines with the default MQTT port, specify \fItcp://localhost:1883\fP\&. +\fIserverURI\fP A null-terminated string specifying the server to which the client will connect\&. It takes the form \fIprotocol://host:port\fP\&. Currently, \fIprotocol\fP must be: +.br + \fItcp://\fP or \fImqtt://\fP - Insecure TCP +.br + \fIssl://\fP or \fImqtts://\fP - Encrypted SSL/TLS +.br + \fIws://\fP - Insecure websockets +.br + \fIwss://\fP - Secure web sockets +.br + The TLS enabled prefixes (ssl, mqtts, wss) are only valid if a TLS version of the library is linked with\&. For \fIhost\fP, you can specify either an IP address or a host name\&. For instance, to connect to a server running on the local machines with the default MQTT port, specify \fItcp://localhost:1883\fP\&. .br \fIclientId\fP The client identifier passed to the server when the client connects to it\&. It is a null-terminated UTF-8 encoded string\&. .br diff --git a/docs/MQTTClient/man/man3/MQTTClientPersistence.h.3 b/docs/MQTTClient/man/man3/MQTTClientPersistence.h.3 index 95c144273..8e625dde6 100644 --- a/docs/MQTTClient/man/man3/MQTTClientPersistence.h.3 +++ b/docs/MQTTClient/man/man3/MQTTClientPersistence.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTClientPersistence.h" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClientPersistence.h" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTClient_SSLOptions.3 b/docs/MQTTClient/man/man3/MQTTClient_SSLOptions.3 index 4cecb17b7..92488c113 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_SSLOptions.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_SSLOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_SSLOptions" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_SSLOptions" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTClient_connectOptions.3 b/docs/MQTTClient/man/man3/MQTTClient_connectOptions.3 index 3a6ceacbc..9d885219f 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_connectOptions.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_connectOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_connectOptions" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_connectOptions" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME @@ -100,7 +100,19 @@ MQTTClient_connectOptions .PP \fBMQTTClient_connectOptions\fP defines several settings that control the way the client connects to an MQTT server\&. .PP -\fBNote:\fP Default values are not defined for members of \fBMQTTClient_connectOptions\fP so it is good practice to specify all settings\&. If the \fBMQTTClient_connectOptions\fP structure is defined as an automatic variable, all members are set to random values and thus must be set by the client application\&. If the \fBMQTTClient_connectOptions\fP structure is defined as a static variable, initialization (in compliant compilers) sets all values to 0 (NULL for pointers)\&. A \fBkeepAliveInterval\fP setting of 0 prevents correct operation of the client and so you \fBmust\fP at least set a value for \fBkeepAliveInterval\fP\&. +\fBNote:\fP Default values are not defined for members of \fBMQTTClient_connectOptions\fP so it is good practice to specify all settings\&. If the \fBMQTTClient_connectOptions\fP structure is defined as an automatic variable, all members are set to random values and thus must be set by the client application\&. If the \fBMQTTClient_connectOptions\fP structure is defined as a static variable, initialization (in compliant compilers) sets all values to 0 (NULL for pointers)\&. A \fBkeepAliveInterval\fP setting of 0 prevents correct operation of the client and so you \fBmust\fP at least set a value for \fBkeepAliveInterval\fP\&. +.PP +Suitable default values are set in the following initializers: +.IP "\(bu" 2 +MQTTClient_connectOptions_initializer: for MQTT 3\&.1\&.1 non-WebSockets +.IP "\(bu" 2 +MQTTClient_connectOptions_initializer5: for MQTT 5\&.0 non-WebSockets +.IP "\(bu" 2 +MQTTClient_connectOptions_initializer_ws: for MQTT 3\&.1\&.1 WebSockets +.IP "\(bu" 2 +MQTTClient_connectOptions_initializer5_ws: for MQTT 5\&.0 WebSockets +.PP + .SH "Field Documentation" .PP .SS "char struct_id[4]" diff --git a/docs/MQTTClient/man/man3/MQTTClient_createOptions.3 b/docs/MQTTClient/man/man3/MQTTClient_createOptions.3 index f60a99e0c..60f543295 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_createOptions.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_createOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_createOptions" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_createOptions" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTClient_init_options.3 b/docs/MQTTClient/man/man3/MQTTClient_init_options.3 index d6474f2c1..57ac8b341 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_init_options.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_init_options.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_init_options" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_init_options" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTClient_message.3 b/docs/MQTTClient/man/man3/MQTTClient_message.3 index 3b4a048a9..c4e004740 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_message.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_message.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_message" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_message" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTClient_nameValue.3 b/docs/MQTTClient/man/man3/MQTTClient_nameValue.3 index 2a2c257e5..2106c0944 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_nameValue.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_nameValue.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_nameValue" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_nameValue" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTClient_persistence.3 b/docs/MQTTClient/man/man3/MQTTClient_persistence.3 index 3e4110007..bfcfdf75e 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_persistence.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_persistence.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_persistence" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_persistence" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTClient_willOptions.3 b/docs/MQTTClient/man/man3/MQTTClient_willOptions.3 index 0305ab58d..748483cd8 100644 --- a/docs/MQTTClient/man/man3/MQTTClient_willOptions.3 +++ b/docs/MQTTClient/man/man3/MQTTClient_willOptions.3 @@ -1,4 +1,4 @@ -.TH "MQTTClient_willOptions" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTClient_willOptions" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTLenString.3 b/docs/MQTTClient/man/man3/MQTTLenString.3 index 946bf7bae..eaa66e461 100644 --- a/docs/MQTTClient/man/man3/MQTTLenString.3 +++ b/docs/MQTTClient/man/man3/MQTTLenString.3 @@ -1,4 +1,4 @@ -.TH "MQTTLenString" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTLenString" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTProperties.3 b/docs/MQTTClient/man/man3/MQTTProperties.3 index 911df4e02..2f99abd84 100644 --- a/docs/MQTTClient/man/man3/MQTTProperties.3 +++ b/docs/MQTTClient/man/man3/MQTTProperties.3 @@ -1,4 +1,4 @@ -.TH "MQTTProperties" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTProperties" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTProperties.h.3 b/docs/MQTTClient/man/man3/MQTTProperties.h.3 index 2dd11e693..f44fc9005 100644 --- a/docs/MQTTClient/man/man3/MQTTProperties.h.3 +++ b/docs/MQTTClient/man/man3/MQTTProperties.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTProperties.h" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTProperties.h" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTProperty.3 b/docs/MQTTClient/man/man3/MQTTProperty.3 index 216bf3f47..2408baf4b 100644 --- a/docs/MQTTClient/man/man3/MQTTProperty.3 +++ b/docs/MQTTClient/man/man3/MQTTProperty.3 @@ -1,4 +1,4 @@ -.TH "MQTTProperty" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTProperty" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTReasonCodes.h.3 b/docs/MQTTClient/man/man3/MQTTReasonCodes.h.3 index a6f24df30..4f3522e9b 100644 --- a/docs/MQTTClient/man/man3/MQTTReasonCodes.h.3 +++ b/docs/MQTTClient/man/man3/MQTTReasonCodes.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTReasonCodes.h" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTReasonCodes.h" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTResponse.3 b/docs/MQTTClient/man/man3/MQTTResponse.3 index e3dc913ce..13ecbeb90 100644 --- a/docs/MQTTClient/man/man3/MQTTResponse.3 +++ b/docs/MQTTClient/man/man3/MQTTResponse.3 @@ -1,4 +1,4 @@ -.TH "MQTTResponse" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTResponse" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTSubscribeOpts.h.3 b/docs/MQTTClient/man/man3/MQTTSubscribeOpts.h.3 index 7c83dae23..d01ce3b61 100644 --- a/docs/MQTTClient/man/man3/MQTTSubscribeOpts.h.3 +++ b/docs/MQTTClient/man/man3/MQTTSubscribeOpts.h.3 @@ -1,4 +1,4 @@ -.TH "MQTTSubscribeOpts.h" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTSubscribeOpts.h" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/MQTTSubscribe_options.3 b/docs/MQTTClient/man/man3/MQTTSubscribe_options.3 index cdecb1b9f..ded97879c 100644 --- a/docs/MQTTClient/man/man3/MQTTSubscribe_options.3 +++ b/docs/MQTTClient/man/man3/MQTTSubscribe_options.3 @@ -1,4 +1,4 @@ -.TH "MQTTSubscribe_options" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "MQTTSubscribe_options" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/async.3 b/docs/MQTTClient/man/man3/async.3 index ca724055a..8a858dc89 100644 --- a/docs/MQTTClient/man/man3/async.3 +++ b/docs/MQTTClient/man/man3/async.3 @@ -1,4 +1,4 @@ -.TH "async" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "async" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/callbacks.3 b/docs/MQTTClient/man/man3/callbacks.3 index dabb4d051..142c8085b 100644 --- a/docs/MQTTClient/man/man3/callbacks.3 +++ b/docs/MQTTClient/man/man3/callbacks.3 @@ -1,4 +1,4 @@ -.TH "callbacks" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "callbacks" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/pubasync.3 b/docs/MQTTClient/man/man3/pubasync.3 index db9a347ea..7f001c94c 100644 --- a/docs/MQTTClient/man/man3/pubasync.3 +++ b/docs/MQTTClient/man/man3/pubasync.3 @@ -1,4 +1,4 @@ -.TH "pubasync" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "pubasync" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/pubsync.3 b/docs/MQTTClient/man/man3/pubsync.3 index be5472771..6a1a56e50 100644 --- a/docs/MQTTClient/man/man3/pubsync.3 +++ b/docs/MQTTClient/man/man3/pubsync.3 @@ -1,4 +1,4 @@ -.TH "pubsync" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "pubsync" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/qos.3 b/docs/MQTTClient/man/man3/qos.3 index fef889c38..20356319d 100644 --- a/docs/MQTTClient/man/man3/qos.3 +++ b/docs/MQTTClient/man/man3/qos.3 @@ -1,4 +1,4 @@ -.TH "qos" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "qos" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/subasync.3 b/docs/MQTTClient/man/man3/subasync.3 index f57e2fc32..99462b3d7 100644 --- a/docs/MQTTClient/man/man3/subasync.3 +++ b/docs/MQTTClient/man/man3/subasync.3 @@ -1,4 +1,4 @@ -.TH "subasync" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "subasync" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/tracing.3 b/docs/MQTTClient/man/man3/tracing.3 index bb736e29b..b3ddd9c5c 100644 --- a/docs/MQTTClient/man/man3/tracing.3 +++ b/docs/MQTTClient/man/man3/tracing.3 @@ -1,4 +1,4 @@ -.TH "tracing" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "tracing" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient/man/man3/wildcard.3 b/docs/MQTTClient/man/man3/wildcard.3 index ec36cdb0f..9df606a18 100644 --- a/docs/MQTTClient/man/man3/wildcard.3 +++ b/docs/MQTTClient/man/man3/wildcard.3 @@ -1,4 +1,4 @@ -.TH "wildcard" 3 "Mon Mar 28 2022" "Paho MQTT C Client Library" \" -*- nroff -*- +.TH "wildcard" 3 "Thu Sep 29 2022" "Paho MQTT C Client Library" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/MQTTClient_internal/html/Clients_8c.html b/docs/MQTTClient_internal/html/Clients_8c.html index 48bbd5eb5..992b9318b 100644 --- a/docs/MQTTClient_internal/html/Clients_8c.html +++ b/docs/MQTTClient_internal/html/Clients_8c.html @@ -175,35 +175,35 @@

int pstclear(void *handle)
Delete all the persisted message in the client persistence directory.
Definition: MQTTPersistenceDefault.c:543
-
const MQTTClient_nameValue * httpHeaders
HTTP headers for websockets.
Definition: MQTTClient.h:952
-
const void * data
binary payload data
Definition: MQTTClient.h:636
+
const MQTTClient_nameValue * httpHeaders
HTTP headers for websockets.
Definition: MQTTClient.h:970
+
const void * data
binary payload data
Definition: MQTTClient.h:648
unsigned short integer2
holds the value of a 2 byte integer property type
Definition: MQTTProperties.h:100
ListElement * current
current element in the list, for iteration
Definition: LinkedList.h:71
Persistence_get pget
A function pointer to an implementation of Persistence_get().
Definition: MQTTClientPersistence.h:235
-
void Socket_clearPendingWrite(SOCKET socket)
Clear a socket from the pending write list - if one was added with Socket_addPendingWrite.
Definition: Socket.c:819
-
static int MQTTClient_disconnect_internal(MQTTClient handle, int timeout)
mqttclient_mutex must be locked when you call this function, if multi threaded
Definition: MQTTClient.c:1912
+
void Socket_clearPendingWrite(SOCKET socket)
Clear a socket from the pending write list - if one was added with Socket_addPendingWrite.
Definition: Socket.c:848
+
static int MQTTClient_disconnect_internal(MQTTClient handle, int timeout)
mqttclient_mutex must be locked when you call this function, if multi threaded
Definition: MQTTClient.c:1956
size_t datalen
current length of data in buf
Definition: SocketBuffer.h:40
unsigned char all
all connect flags
Definition: MQTTPacket.h:94
-
void MQTTProtocol_freeClient(Clients *client)
Free a client structure.
Definition: MQTTProtocolClient.c:892
-
int sessionPresent
if the MQTT version is 3.1.1, the value of sessionPresent returned in the connack
Definition: MQTTClient.h:931
-
Utility structure where name/value pairs are needed.
Definition: MQTTAsync.h:1168
+
void MQTTProtocol_freeClient(Clients *client)
Free a client structure.
Definition: MQTTProtocolClient.c:908
+
int sessionPresent
if the MQTT version is 3.1.1, the value of sessionPresent returned in the connack
Definition: MQTTClient.h:949
+
Utility structure where name/value pairs are needed.
Definition: MQTTAsync.h:1182
char * data
pointer to the string data
Definition: MQTTProperties.h:87
-
SOCKET Socket_getReadySocket(int more_work, int timeout, mutex_type mutex, int *rc)
Returns the next socket ready for communications as indicated by select.
Definition: Socket.c:465
+
SOCKET Socket_getReadySocket(int more_work, int timeout, mutex_type mutex, int *rc)
Returns the next socket ready for communications as indicated by select.
Definition: Socket.c:485
int length
mbi: byte length of all properties
Definition: MQTTProperties.h:116
Structure to hold all data for one list element.
Definition: Tree.h:63
void * ListDetachHead(List *aList)
Removes and frees an the first item in a list.
Definition: LinkedList.c:268
int(* Persistence_clear)(void *handle)
Clears the persistence store, so that it no longer contains any persisted data.
Definition: MQTTClientPersistence.h:197
int MQTTProtocol_subscribe(Clients *client, List *topics, List *qoss, int msgID, MQTTSubscribe_options *opts, MQTTProperties *props)
MQTT outgoing subscribe processing for a client.
Definition: MQTTProtocolOut.c:388
-
MQTTAsync_willOptions defines the MQTT "Last Will and Testament" (LWT) settings for the client.
Definition: MQTTAsync.h:1006
+
MQTTAsync_willOptions defines the MQTT "Last Will and Testament" (LWT) settings for the client.
Definition: MQTTAsync.h:1020
static char * trace_destination_backup_name
the name of the backup trace file
Definition: Log.c:105
struct ListElementStruct * prev
pointer to previous list element
Definition: LinkedList.h:74
-
void MQTTClient_global_init(MQTTClient_init_options *inits)
Global init of mqtt library.
Definition: MQTTClient.c:91
-
MQTTClient_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL li...
Definition: MQTTClient.h:659
+
void MQTTClient_global_init(MQTTClient_init_options *inits)
Global init of mqtt library.
Definition: MQTTClient.c:93
+
MQTTClient_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL li...
Definition: MQTTClient.h:671
size_t size
heap storage used
Definition: LinkedList.h:73
char * httpProxy
HTTP proxy.
Definition: Clients.h:154
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1057
-
const char * username
MQTT servers that support the MQTT v3.1 protocol provide authentication and authorisation by user nam...
Definition: MQTTAsync.h:1242
-
int Thread_wait_sem(sem_type sem, int timeout)
Wait for a semaphore to be posted, or timeout.
Definition: Thread.c:223
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1071
+
const char * username
MQTT servers that support the MQTT v3.1 protocol provide authentication and authorisation by user nam...
Definition: MQTTAsync.h:1261
+
int Thread_wait_sem(sem_type sem, int timeout)
Wait for a semaphore to be posted, or timeout.
Definition: Thread.c:249
unsigned char all
all connack flags
Definition: MQTTPacket.h:138
void ListAppendNoMalloc(List *aList, void *content, ListElement *newel, size_t size)
Append an already allocated ListElement and content to a list.
Definition: LinkedList.c:69
Header header
MQTT header byte.
Definition: MQTTPacket.h:216
@@ -212,378 +212,379 @@

List * inboundMsgs
inbound in flight messages
Definition: Clients.h:138
int maxInflightMessages
the max number of inflight outbound messages we allow
Definition: Clients.h:136
Header header
MQTT header byte.
Definition: MQTTPacket.h:186
-
MQTTAsync_onSuccess * onSuccess
A pointer to a callback function to be called if the disconnect successfully completes.
Definition: MQTTAsync.h:1417
+
MQTTAsync_onSuccess * onSuccess
A pointer to a callback function to be called if the disconnect successfully completes.
Definition: MQTTAsync.h:1443
int MQTTPersistence_afterRead(void *context, char **buffer, int *buflen)
A callback which is invoked just after a read from persistence.
Definition: MQTTClientPersistence.h:275
-
int verify
Whether to carry out post-connect checks, including that a certificate matches the given host name.
Definition: MQTTAsync.h:1108
+
int verify
Whether to carry out post-connect checks, including that a certificate matches the given host name.
Definition: MQTTAsync.h:1122
int Socket_setnonblocking(SOCKET sock)
Set a socket non-blocking, OS independently.
Definition: Socket.c:82
int ListRemove(List *aList, void *content)
Removes and frees an item in a list by comparing the pointer to the content.
Definition: LinkedList.c:257
-
const char * message
The LWT payload.
Definition: MQTTAsync.h:1017
-
int serverURIcount
The number of entries in the optional serverURIs array.
Definition: MQTTClient.h:901
+
const char * message
The LWT payload.
Definition: MQTTAsync.h:1031
+
int serverURIcount
The number of entries in the optional serverURIs array.
Definition: MQTTClient.h:919
bool will
will flag
Definition: MQTTPacket.h:111
Data for a suback packet.
Definition: MQTTPacket.h:171
-
MQTTAsync_onSuccess5 * onSuccess5
A pointer to a callback function to be called if the connect successfully completes.
Definition: MQTTAsync.h:1343
+
MQTTAsync_onSuccess5 * onSuccess5
A pointer to a callback function to be called if the connect successfully completes.
Definition: MQTTAsync.h:1362
size_t max_size
max size the heap has reached in bytes
Definition: Heap.h:65
void * TreeRemoveNodeIndex(Tree *aTree, Node *curnode, int index)
Remove an item from a tree.
Definition: Tree.c:420
-
MQTTClient_willOptions * will
This is a pointer to an MQTTClient_willOptions structure.
Definition: MQTTClient.h:868
+
MQTTClient_willOptions * will
This is a pointer to an MQTTClient_willOptions structure.
Definition: MQTTClient.h:886
int msgId
MQTT message id.
Definition: MQTTPacket.h:187
-
Definition: MQTTClient.c:300
+
Definition: MQTTClient.c:302
int clientIDCompare(void *a, void *b)
List callback function for comparing clients by clientid.
Definition: Clients.c:36
-
static thread_return_type WINAPI connectionLost_call(void *context)
Wrapper function to call connection lost on a separate thread.
Definition: MQTTClient.c:683
-
int qos
The quality of service (QoS) assigned to the message.
Definition: MQTTClient.h:291
-
int MQTTClient_receive(MQTTClient handle, char **topicName, int *topicLen, MQTTClient_message **message, unsigned long timeout)
This function performs a synchronous receive of incoming messages.
Definition: MQTTClient.c:2692
+
static thread_return_type WINAPI connectionLost_call(void *context)
Wrapper function to call connection lost on a separate thread.
Definition: MQTTClient.c:700
+
int qos
The quality of service (QoS) assigned to the message.
Definition: MQTTClient.h:295
+
int MQTTClient_receive(MQTTClient handle, char **topicName, int *topicLen, MQTTClient_message **message, unsigned long timeout)
This function performs a synchronous receive of incoming messages.
Definition: MQTTClient.c:2754
unsigned int ping_due
we couldn't send a ping so we should send one when we can
Definition: Clients.h:129
char * SocketBuffer_getQueuedData(SOCKET socket, size_t bytes, size_t *actual_len)
Get any queued data for a specific socket.
Definition: SocketBuffer.c:176
-
int packet_type
Packet type on which the failure occurred - used for publish QoS 1/2 exchanges.
Definition: MQTTAsync.h:559
+
int packet_type
Packet type on which the failure occurred - used for publish QoS 1/2 exchanges.
Definition: MQTTAsync.h:564
void SocketBuffer_freeDefQ(void)
Free the default queue memory.
Definition: SocketBuffer.c:122
-
Definition: MQTTAsyncUtils.h:40
+
Definition: MQTTAsyncUtils.h:41
builds a websocket frame for data transmission
Definition: WebSocket.c:227
void SocketBuffer_terminate(void)
Terminate the socketBuffer module.
Definition: SocketBuffer.c:133
ListElement * ListFindItem(List *aList, void *content, int(*callback)(void *, void *))
Finds an element in a list by comparing the content or pointer to the content.
Definition: LinkedList.c:154
size_t size
size of content
Definition: Tree.h:82
-
void * context
Definition: MQTTAsync.h:1429
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:269
+
void * context
Definition: MQTTAsync.h:1455
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:274
int socketcompare(void *a, void *b)
List callback function for comparing socket_queues by socket.
Definition: SocketBuffer.c:70
void * MQTTPacket_suback(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create suback packets.
Definition: MQTTPacketOut.c:290
-
Definition: MQTTClient.c:335
+
Definition: MQTTClient.c:337
char * topic
topic string
Definition: MQTTPacket.h:200
#define MQTTCLIENT_PERSISTENCE_ERROR
Application-specific persistence functions must return this error code if there is a problem executin...
Definition: MQTTClientPersistence.h:85
-
void MQTTClient_setTraceCallback(MQTTClient_traceCallback *callback)
This function sets the trace callback if needed.
Definition: MQTTClient.c:2879
+
void MQTTClient_setTraceCallback(MQTTClient_traceCallback *callback)
This function sets the trace callback if needed.
Definition: MQTTClient.c:2941
void MQTTProtocol_specialChars(char *p0, char *p1, b64_size_t *basic_auth_in_len)
Allow user or password characters to be expressed in the form of XX, XX being the hexadecimal value o...
Definition: MQTTProtocolOut.c:114
int MQTTProtocol_handleDisconnects(void *pack, SOCKET sock)
Process an incoming disconnect packet for a socket.
Definition: MQTTProtocolOut.c:465
Definition: MQTTProtocol.h:28
int ListRemoveHead(List *aList)
Removes and frees an the first item in a list.
Definition: LinkedList.c:294
-
void * payload
A pointer to the payload of the MQTT message.
Definition: MQTTClient.h:277
-
Definition: MQTTAsyncUtils.h:32
-
int readInt4(char **pptr)
Calculates an integer from two bytes read from the input buffer.
Definition: MQTTPacket.c:962
+
void * payload
A pointer to the payload of the MQTT message.
Definition: MQTTClient.h:281
+
Definition: MQTTAsyncUtils.h:33
+
int readInt4(char **pptr)
Calculates an integer from two bytes read from the input buffer.
Definition: MQTTPacket.c:965
MQTT version 5 property list.
Definition: MQTTProperties.h:112
-
int MQTTPacket_sends(networkHandles *net, Header header, PacketBuffers *bufs, int MQTTVersion)
Sends an MQTT packet from multiple buffers in one system call write.
Definition: MQTTPacket.c:250
+
int MQTTPacket_sends(networkHandles *net, Header header, PacketBuffers *bufs, int MQTTVersion)
Sends an MQTT packet from multiple buffers in one system call write.
Definition: MQTTPacket.c:253
int pstkeys(void *handle, char ***keys, int *nkeys)
Returns the keys (file names w/o the extension) in the client persistence directory.
Definition: MQTTPersistenceDefault.c:659
struct MQTTAsync_successData::@1::@2 pub
For publish, the message being sent to the server.
#define MQTTCLIENT_PERSISTENCE_USER
This persistence_type value specifies an application-specific persistence mechanism (see MQTTClient_c...
Definition: MQTTClientPersistence.h:79
Information about the state of the heap.
Definition: Heap.h:62
int MQTTVersion
the version of MQTT
Definition: MQTTPacket.h:205
-
int keepAliveInterval
The "keep alive" interval, measured in seconds, defines the maximum time that should pass without com...
Definition: MQTTClient.h:830
+
int keepAliveInterval
The "keep alive" interval, measured in seconds, defines the maximum time that should pass without com...
Definition: MQTTClient.h:848
int(* Persistence_get)(void *handle, char *key, char **buffer, int *buflen)
Retrieve the specified data from the persistent store.
Definition: MQTTClientPersistence.h:156
int len
PUBREC, PUBREL, PUBCOMP
Definition: Clients.h:64
static int MQTTProtocol_startPublishCommon(Clients *pubclient, Publish *publish, int qos, int retained)
Utility function to start a new publish exchange.
Definition: MQTTProtocolClient.c:149
int SocketBuffer_getQueuedChar(SOCKET socket, char *c)
Get any queued character for a specific socket.
Definition: SocketBuffer.c:219
void * phandle
the persistence handle
Definition: Clients.h:145
MQTTClient_persistence * persistence
a persistence implementation
Definition: Clients.h:146
-
char *const * serverURIs
An optional array of null-terminated strings specifying the servers to which the client will connect.
Definition: MQTTClient.h:915
-
static void MQTTProtocol_checkPendingWrites(void)
See if any pending writes have been completed, and cleanup if so.
Definition: MQTTClient.c:2989
-
int MQTTVersion
Whether the MQTT version is 3.1, 3.1.1, or 5.
Definition: MQTTAsync.h:967
+
char *const * serverURIs
An optional array of null-terminated strings specifying the servers to which the client will connect.
Definition: MQTTClient.h:933
+
static void MQTTProtocol_checkPendingWrites(void)
See if any pending writes have been completed, and cleanup if so.
Definition: MQTTClient.c:3051
+
int MQTTVersion
Whether the MQTT version is 3.1, 3.1.1, or 5.
Definition: MQTTAsync.h:981
char * httpsProxy
HTTPS proxy.
Definition: Clients.h:155
-
char * serverURI
the connection string of the server
Definition: MQTTAsync.h:587
-
int qos
The quality of service setting for the LWT message (see MQTTClient_message.qos and qos).
Definition: MQTTClient.h:631
+
char * serverURI
the connection string of the server
Definition: MQTTAsync.h:592
+
int qos
The quality of service setting for the LWT message (see MQTTClient_message.qos and qos).
Definition: MQTTClient.h:643
networkHandles net
network info for this client
Definition: Clients.h:132
unsigned int reserved
message type nibble
Definition: MQTTPacket.h:149
int(* Persistence_close)(void *handle)
Close the persistent store referred to by the handle.
Definition: MQTTClientPersistence.h:123
Data for a packet with header only.
Definition: MQTTPacket.h:162
-
int code
A numeric code identifying the MQTT client library error.
Definition: MQTTAsync.h:555
-
void MQTTProtocol_freeMessageList(List *msgList)
Empty and free up all storage used by a message list.
Definition: MQTTProtocolClient.c:973
+
int code
A numeric code identifying the MQTT client library error.
Definition: MQTTAsync.h:560
+
void MQTTProtocol_freeMessageList(List *msgList)
Empty and free up all storage used by a message list.
Definition: MQTTProtocolClient.c:994
int SocketBuffer_pendingWrite(SOCKET socket, int count, iobuf *iovecs, int *frees, size_t total, size_t bytes)
A socket write was interrupted so store the remaining data.
Definition: SocketBuffer.c:349
-
int MQTTPacket_send_publish(Publish *pack, int dup, int qos, int retained, networkHandles *net, const char *clientID)
Send an MQTT PUBLISH packet down a socket.
Definition: MQTTPacket.c:852
-
int MQTTVersion
Sets the version of MQTT to be used on the connect.
Definition: MQTTAsync.h:1306
+
int MQTTPacket_send_publish(Publish *pack, int dup, int qos, int retained, networkHandles *net, const char *clientID)
Send an MQTT PUBLISH packet down a socket.
Definition: MQTTPacket.c:855
+
int MQTTVersion
Sets the version of MQTT to be used on the connect.
Definition: MQTTAsync.h:1325
Data for an MQTT V5 unsuback packet.
Definition: MQTTPacket.h:184
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1404
-
const char * privateKey
If not included in the sslKeyStore, this setting points to the file in PEM format containing the clie...
Definition: MQTTAsync.h:1079
-
void * MQTTPacket_ack(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create acknowledgement packets.
Definition: MQTTPacket.c:791
-
MQTTResponse MQTTClient_subscribeMany5(MQTTClient handle, int count, char *const *topic, int *qos, MQTTSubscribe_options *opts, MQTTProperties *props)
This function attempts to subscribe an MQTT version 5.0 client to a list of topics,...
Definition: MQTTClient.c:1964
-
int Socket_addSocket(SOCKET newSd)
Add a socket to the list of socket to check with select.
Definition: Socket.c:260
-
A structure representing the payload and attributes of an MQTT message.
Definition: MQTTClient.h:267
-
char * destinationName
the topic destination for the message
Definition: MQTTAsync.h:617
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1430
+
const char * privateKey
If not included in the sslKeyStore, this setting points to the file in PEM format containing the clie...
Definition: MQTTAsync.h:1093
+
void * MQTTPacket_ack(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create acknowledgement packets.
Definition: MQTTPacket.c:794
+
MQTTResponse MQTTClient_subscribeMany5(MQTTClient handle, int count, char *const *topic, int *qos, MQTTSubscribe_options *opts, MQTTProperties *props)
This function attempts to subscribe an MQTT version 5.0 client to a list of topics,...
Definition: MQTTClient.c:2008
+
int Socket_addSocket(SOCKET newSd)
Add a socket to the list of socket to check with select.
Definition: Socket.c:266
+
A structure representing the payload and attributes of an MQTT message.
Definition: MQTTClient.h:271
+
char * destinationName
the topic destination for the message
Definition: MQTTAsync.h:622
int MQTTPersistence_initialize(Clients *c, const char *serverURI)
Open persistent store and restore any persisted messages.
Definition: MQTTPersistence.c:115
MQTTPersistence_afterRead * afterRead
persistence read callback
Definition: Clients.h:148
int ListDetach(List *aList, void *content)
Removes but does not free an item in a list by comparing the pointer to the content.
Definition: LinkedList.c:245
void Log(enum LOG_LEVELS log_level, int msgno, const char *format,...)
Log a message.
Definition: Log.c:425
int MQTTProtocol_connect(const char *ip_address, Clients *aClient, int websocket, int MQTTVersion, MQTTProperties *connectProperties, MQTTProperties *willProperties)
MQTT outgoing connect processing for a client.
Definition: MQTTProtocolOut.c:217
-
int MQTTClient_createWithOptions(MQTTClient *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context, MQTTClient_createOptions *options)
A version of :MQTTClient_create() with additional options.
Definition: MQTTClient.c:371
+
int MQTTClient_createWithOptions(MQTTClient *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context, MQTTClient_createOptions *options)
A version of :MQTTClient_create() with additional options.
Definition: MQTTClient.c:373
void ListFreeNoContent(List *aList)
Removes and but does not free all items in a list, and frees the list itself.
Definition: LinkedList.c:392
int MQTTPersistence_putPacket(SOCKET socket, char *buf0, size_t buf0len, int count, char **buffers, size_t *buflens, int htype, int msgId, int scr, int MQTTVersion)
Adds a record to the persistent store.
Definition: MQTTPersistence.c:434
void * content
pointer to element content
Definition: Tree.h:81
-
const char * CApath
From the OpenSSL documentation: If CApath is not NULL, it points to a directory containing CA certifi...
Definition: MQTTClient.h:720
-
int allowDisconnectedSendAtAnyTime
Allow sending of messages while disconnected before a first successful connect.
Definition: MQTTAsync.h:971
+
const char * CApath
From the OpenSSL documentation: If CApath is not NULL, it points to a directory containing CA certifi...
Definition: MQTTClient.h:732
+
int allowDisconnectedSendAtAnyTime
Allow sending of messages while disconnected before a first successful connect.
Definition: MQTTAsync.h:985
START_TIME_TYPE ping_due_time
the time at which the ping should have been sent (ping_due)
Definition: Clients.h:131
-
int MQTTClient_publish(MQTTClient handle, const char *topicName, int payloadlen, const void *payload, int qos, int retained, MQTTClient_deliveryToken *deliveryToken)
This function attempts to publish a message to a given topic (see also MQTTClient_publishMessage()).
Definition: MQTTClient.c:2406
-
MQTTClient_libraryInfo is used to store details relating to the currently used library such as the ve...
Definition: MQTTClient.h:779
+
int MQTTClient_publish(MQTTClient handle, const char *topicName, int payloadlen, const void *payload, int qos, int retained, MQTTClient_deliveryToken *deliveryToken)
This function attempts to publish a message to a given topic (see also MQTTClient_publishMessage()).
Definition: MQTTClient.c:2463
+
MQTTClient_libraryInfo is used to store details relating to the currently used library such as the ve...
Definition: MQTTClient.h:791
enum MQTTPropertyCodes identifier
The MQTT V5 property id.
Definition: MQTTProperties.h:96
Header header
MQTT header byte.
Definition: MQTTPacket.h:91
-
void MQTTPacket_freeUnsuback(Unsuback *pack)
Free allocated storage for a suback packet.
Definition: MQTTPacket.c:708
+
void MQTTPacket_freeUnsuback(Unsuback *pack)
Free allocated storage for a suback packet.
Definition: MQTTPacket.c:711
#define MQTTCLIENT_PERSISTENCE_NONE
This persistence_type value specifies a memory-based persistence mechanism (see MQTTClient_create()).
Definition: MQTTClientPersistence.h:74
struct MQTTClient_connectOptions::@19 binarypwd
Optional binary password.
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:706
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:711
unsigned char rc
connack reason code
Definition: MQTTPacket.h:153
-
const char * trustStore
The file in PEM format containing the public digital certificates trusted by the client.
Definition: MQTTAsync.h:1069
+
const char * trustStore
The file in PEM format containing the public digital certificates trusted by the client.
Definition: MQTTAsync.h:1083
int line
the line no in the source file where it was allocated
Definition: Heap.c:71
ListElement * ListNextElement(List *aList, ListElement **pos)
Forward iteration through a list.
Definition: LinkedList.c:411
int MQTTVersion
the version of MQTT
Definition: MQTTPacket.h:175
unsigned char version
MQTT version number.
Definition: MQTTPacket.h:126
Definition: MQTTPersistence.h:84
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:949
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:963
Definition: StackTrace.c:46
int MQTTPersistence_create(MQTTClient_persistence **persistence, int type, void *pcontext)
Creates a MQTTClient_persistence structure representing a persistence implementation.
Definition: MQTTPersistence.c:51
MQTTLenString value
The value of a user property.
Definition: MQTTProperties.h:104
-
int Thread_destroy_mutex(mutex_type mutex)
Destroy a mutex which has already been created.
Definition: Thread.c:155
-
char * MQTTStrncpy(char *dest, const char *src, size_t dest_size)
Copy no more than dest_size -1 characters from the string pointed to by src to the array pointed to b...
Definition: MQTTProtocolClient.c:1035
+
int Thread_destroy_mutex(mutex_type mutex)
Destroy a mutex which has already been created.
Definition: Thread.c:181
+
char * MQTTStrncpy(char *dest, const char *src, size_t dest_size)
Copy no more than dest_size -1 characters from the string pointed to by src to the array pointed to b...
Definition: MQTTProtocolClient.c:1056
MQTTProperties properties
MQTT 5.0 properties.
Definition: MQTTPacket.h:220
-
void writeData(char **pptr, const void *data, int datalen)
Writes length delimited data to an output buffer.
Definition: MQTTPacket.c:479
-
MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL lib...
Definition: MQTTAsync.h:1054
-
const char * message
Optional further text explaining the error.
Definition: MQTTAsync.h:557
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1009
+
void writeData(char **pptr, const void *data, int datalen)
Writes length delimited data to an output buffer.
Definition: MQTTPacket.c:482
+
MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL lib...
Definition: MQTTAsync.h:1068
+
const char * message
Optional further text explaining the error.
Definition: MQTTAsync.h:562
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1023
Definition: Log.h:77
-
int MQTTClient_publishMessage(MQTTClient handle, const char *topicName, MQTTClient_message *message, MQTTClient_deliveryToken *deliveryToken)
This function attempts to publish a message to a given topic (see also MQTTClient_publish()).
Definition: MQTTClient.c:2451
+
int MQTTClient_publishMessage(MQTTClient handle, const char *topicName, MQTTClient_message *message, MQTTClient_deliveryToken *deliveryToken)
This function attempts to publish a message to a given topic (see also MQTTClient_publish()).
Definition: MQTTClient.c:2508
bool sessionPresent
was a session found on the server?
Definition: MQTTPacket.h:148
char * willMsg
will payload
Definition: MQTTPacket.h:123
-
cond_type Thread_create_cond(int *rc)
Create a new condition variable.
Definition: Thread.c:358
+
cond_type Thread_create_cond(int *rc)
Create a new condition variable.
Definition: Thread.c:384
int connect_count
the number of outbound messages on reconnect - to ensure we send them all
Definition: Clients.h:140
void Heap_terminate(void)
Heap termination.
Definition: Heap.c:417
Definition: MQTTProtocolClient.c:61
-
static thread_return_type WINAPI call_disconnected(void *context)
Wrapper function to call disconnected on a separate thread.
Definition: MQTTClient.c:721
-
MQTTProperties properties
MQTT V5 properties returned, if any.
Definition: MQTTAsync.h:603
+
struct pollfd * fds_read
poll read file descriptors
Definition: Socket.h:126
+
static thread_return_type WINAPI call_disconnected(void *context)
Wrapper function to call disconnected on a separate thread.
Definition: MQTTClient.c:738
+
MQTTProperties properties
MQTT V5 properties returned, if any.
Definition: MQTTAsync.h:608
int indexes
no of indexes into tree
Definition: Tree.h:83
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:599
-
static int MQTTClient_disconnect1(MQTTClient handle, int timeout, int internal, int stop, enum MQTTReasonCodes, MQTTProperties *)
mqttclient_mutex must be locked when you call this function, if multi threaded
Definition: MQTTClient.c:1865
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:604
+
static int MQTTClient_disconnect1(MQTTClient handle, int timeout, int internal, int stop, enum MQTTReasonCodes, MQTTProperties *)
mqttclient_mutex must be locked when you call this function, if multi threaded
Definition: MQTTClient.c:1909
uint8_t mask[4]
array of flags indicating whether each buffer needs to be freed
Definition: Socket.h:105
int UTF8_validate(int len, const char *data)
Validate a length-delimited string has only UTF-8 characters.
Definition: utf-8.c:129
Definition: Socket.h:99
-
MQTTAsync_onSuccess * onSuccess
A pointer to a callback function to be called if the connect successfully completes.
Definition: MQTTAsync.h:1271
+
MQTTAsync_onSuccess * onSuccess
A pointer to a callback function to be called if the connect successfully completes.
Definition: MQTTAsync.h:1290
int msgId
MQTT message id.
Definition: MQTTPacket.h:217
-
void MQTTClient_yield(void)
When implementing a single-threaded client, call this function periodically to allow processing of me...
Definition: MQTTClient.c:2748
-
The connect options that can be updated before an automatic reconnect.
Definition: MQTTAsync.h:460
-
int serverURIcount
The number of entries in the serverURIs array.
Definition: MQTTAsync.h:1287
-
int retained
The retained flag for the LWT message (see MQTTClient_message.retained).
Definition: MQTTClient.h:626
-
Options for the ::MQTTAsync_createWithOptions call.
Definition: MQTTAsync.h:946
+
void MQTTClient_yield(void)
When implementing a single-threaded client, call this function periodically to allow processing of me...
Definition: MQTTClient.c:2810
+
The connect options that can be updated before an automatic reconnect.
Definition: MQTTAsync.h:465
+
int serverURIcount
The number of entries in the serverURIs array.
Definition: MQTTAsync.h:1306
+
int retained
The retained flag for the LWT message (see MQTTClient_message.retained).
Definition: MQTTClient.h:638
+
Options for the ::MQTTAsync_createWithOptions call.
Definition: MQTTAsync.h:960
void Socket_outInitialize(void)
Initialize the socket module.
Definition: Socket.c:130
unsigned int integer4
holds the value of a 4 byte integer property type
Definition: MQTTProperties.h:101
int keepAliveTimer
keepalive timeout value in seconds
Definition: MQTTPacket.h:125
-
int Thread_wait_cond(cond_type condvar, int timeout_ms)
Wait with a timeout (ms) for condition variable.
Definition: Thread.c:409
-
const char * topicName
The LWT topic to which the LWT message will be published.
Definition: MQTTAsync.h:1015
-
void MQTTPacket_freeSuback(Suback *pack)
Free allocated storage for a suback packet.
Definition: MQTTPacket.c:692
-
thread_id_type Thread_getid(void)
Get the thread id of the thread from which this function is called.
Definition: Thread.c:175
+
int Thread_wait_cond(cond_type condvar, int timeout_ms)
Wait with a timeout (ms) for condition variable.
Definition: Thread.c:435
+
const char * topicName
The LWT topic to which the LWT message will be published.
Definition: MQTTAsync.h:1029
+
void MQTTPacket_freeSuback(Suback *pack)
Free allocated storage for a suback packet.
Definition: MQTTPacket.c:695
+
thread_id_type Thread_getid(void)
Get the thread id of the thread from which this function is called.
Definition: Thread.c:201
Stored publication data to minimize copying.
Definition: Clients.h:41
int pstget(void *handle, char *key, char **buffer, int *buflen)
Retrieve a wire message from the client persistence directory.
Definition: MQTTPersistenceDefault.c:257
-
MQTTClient_willOptions defines the MQTT "Last Will and Testament" (LWT) settings for the client.
Definition: MQTTClient.h:611
-
const char * keyStore
The file in PEM format containing the public certificate chain of the client.
Definition: MQTTAsync.h:1074
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:662
-
enum MQTTReasonCodes * reasonCodes
an array of reasonCodes
Definition: MQTTAsync.h:611
-
MQTTResponse MQTTClient_unsubscribeMany5(MQTTClient handle, int count, char *const *topic, MQTTProperties *props)
This function attempts to remove existing subscriptions to a list of topics made by the specified cli...
Definition: MQTTClient.c:2137
-
int Thread_check_sem(sem_type sem)
Check to see if a semaphore has been posted, without waiting The semaphore will be unchanged,...
Definition: Thread.c:285
-
void * context
Definition: MQTTAsync.h:1283
+
MQTTClient_willOptions defines the MQTT "Last Will and Testament" (LWT) settings for the client.
Definition: MQTTClient.h:623
+
const char * keyStore
The file in PEM format containing the public certificate chain of the client.
Definition: MQTTAsync.h:1088
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:674
+
enum MQTTReasonCodes * reasonCodes
an array of reasonCodes
Definition: MQTTAsync.h:616
+
MQTTResponse MQTTClient_unsubscribeMany5(MQTTClient handle, int count, char *const *topic, MQTTProperties *props)
This function attempts to remove existing subscriptions to a list of topics made by the specified cli...
Definition: MQTTClient.c:2188
+
int Thread_check_sem(sem_type sem)
Check to see if a semaphore has been posted, without waiting The semaphore will be unchanged,...
Definition: Thread.c:311
+
void * context
Definition: MQTTAsync.h:1302
Data for a publish packet.
Definition: MQTTPacket.h:197
-
MQTTResponse MQTTClient_publishMessage5(MQTTClient handle, const char *topicName, MQTTClient_message *message, MQTTClient_deliveryToken *deliveryToken)
Attempts to publish a message to the given topic using MQTT version 5.0 (see also MQTTClient_publish5...
Definition: MQTTClient.c:2420
+
MQTTResponse MQTTClient_publishMessage5(MQTTClient handle, const char *topicName, MQTTClient_message *message, MQTTClient_deliveryToken *deliveryToken)
Attempts to publish a message to the given topic using MQTT version 5.0 (see also MQTTClient_publish5...
Definition: MQTTClient.c:2477
size_t size
heap storage used
Definition: Tree.h:85
-
Structure to define call options.
Definition: MQTTAsync.h:703
+
Structure to define call options.
Definition: MQTTAsync.h:708
int clientSocketCompare(void *a, void *b)
List callback function for comparing clients by socket.
Definition: Clients.c:50
-
MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT...
Definition: MQTTClient.h:806
-
int MQTTClient_subscribe(MQTTClient handle, const char *topic, int qos)
This function attempts to subscribe a client to a single topic, which may contain wildcards (see wild...
Definition: MQTTClient.c:2123
+
MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT...
Definition: MQTTClient.h:824
+
int MQTTClient_subscribe(MQTTClient handle, const char *topic, int qos)
This function attempts to subscribe a client to a single topic, which may contain wildcards (see wild...
Definition: MQTTClient.c:2174
Messages * MQTTProtocol_createMessage(Publish *publish, Messages **mm, int qos, int retained, int allocatePayload)
Copy and store message data for retries.
Definition: MQTTProtocolClient.c:206
int MQTTProtocol_handlePingresps(void *pack, SOCKET sock)
Process an incoming pingresp packet for a socket.
Definition: MQTTProtocolOut.c:365
-
int MQTTClient_isConnected(MQTTClient handle)
This function allows the client application to test whether or not a client is currently connected to...
Definition: MQTTClient.c:1949
-
MQTTAsync_SSLOptions * ssl
This is a pointer to an MQTTAsync_SSLOptions structure.
Definition: MQTTAsync.h:1265
-
const char * message
Optional text explaining the error.
Definition: MQTTAsync.h:537
+
int MQTTClient_isConnected(MQTTClient handle)
This function allows the client application to test whether or not a client is currently connected to...
Definition: MQTTClient.c:1993
+
MQTTAsync_SSLOptions * ssl
This is a pointer to an MQTTAsync_SSLOptions structure.
Definition: MQTTAsync.h:1284
+
const char * message
Optional text explaining the error.
Definition: MQTTAsync.h:542
static List * queues
List of queued input buffers.
Definition: SocketBuffer.c:50
Definition: SocketBuffer.h:44
-
void MQTTProtocol_closeSession(Clients *c, int sendwill)
mqttclient_mutex must be locked when you call this function, if multi threaded
Definition: MQTTClient.c:1921
+
void MQTTProtocol_closeSession(Clients *c, int sendwill)
mqttclient_mutex must be locked when you call this function, if multi threaded
Definition: MQTTClient.c:1965
int sessionExpiry
MQTT 5 session expiry.
Definition: Clients.h:153
-
int sendWhileDisconnected
Whether to allow messages to be sent when the client library is not connected.
Definition: MQTTAsync.h:957
-
int MQTTVersion
the version of MQTT being used
Definition: MQTTAsync.h:588
+
int sendWhileDisconnected
Whether to allow messages to be sent when the client library is not connected.
Definition: MQTTAsync.h:971
+
int MQTTVersion
the version of MQTT being used
Definition: MQTTAsync.h:593
static List writes
List of queued write buffers.
Definition: SocketBuffer.c:55
-
void MQTTClient_free(void *memory)
This function frees memory allocated by the MQTT C client library, especially the topic name.
Definition: MQTTClient.c:622
+
void MQTTClient_free(void *memory)
This function frees memory allocated by the MQTT C client library, especially the topic name.
Definition: MQTTClient.c:639
Definition: MQTTPersistence.h:71
void MQTTPacket_freeConnack(Connack *pack)
Free allocated storage for a connack packet.
Definition: MQTTPacketOut.c:185
static void HeapScan(enum LOG_LEVELS log_level)
Scans the heap and reports any items currently allocated.
Definition: Heap.c:383
Tree * TreeInitialize(int(*compare)(void *, void *, int))
Allocates and initializes a new tree structure.
Definition: Tree.c:65
-
MQTTProperties * connectProperties
MQTT V5 properties for connect.
Definition: MQTTAsync.h:1333
+
MQTTProperties * connectProperties
MQTT V5 properties for connect.
Definition: MQTTAsync.h:1352
struct @34 valid_ranges[]
Structure to hold the valid ranges of UTF-8 characters, for each byte up to 4.
-
unsigned int(* ssl_psk_cb)(const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u)
Callback function for setting TLS-PSK options.
Definition: MQTTClient.h:739
-
void MQTTClient_setTraceLevel(enum MQTTCLIENT_TRACE_LEVELS level)
This function sets the level of trace information which will be returned in the trace callback.
Definition: MQTTClient.c:2873
+
unsigned int(* ssl_psk_cb)(const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u)
Callback function for setting TLS-PSK options.
Definition: MQTTClient.h:751
+
void MQTTClient_setTraceLevel(enum MQTTCLIENT_TRACE_LEVELS level)
This function sets the level of trace information which will be returned in the trace callback.
Definition: MQTTClient.c:2935
unsigned int allow_duplicates
switch to allow duplicate entries
Definition: Tree.h:87
-
int cleansession
This is a boolean value.
Definition: MQTTAsync.h:1226
+
int cleansession
This is a boolean value.
Definition: MQTTAsync.h:1245
Persistence_put pput
A function pointer to an implementation of Persistence_put().
Definition: MQTTClientPersistence.h:231
-
enum MQTTReasonCodes reasonCode
The MQTT reason code returned.
Definition: MQTTAsync.h:551
+
enum MQTTReasonCodes reasonCode
The MQTT reason code returned.
Definition: MQTTAsync.h:556
void * TreeRemoveIndex(Tree *aTree, void *content, int index)
Remove an item from a tree.
Definition: Tree.c:487
-
int verify
Whether to carry out post-connect checks, including that a certificate matches the given host name.
Definition: MQTTClient.h:713
-
MQTTClient_SSLOptions * ssl
This is a pointer to an MQTTClient_SSLOptions structure.
Definition: MQTTClient.h:897
+
int verify
Whether to carry out post-connect checks, including that a certificate matches the given host name.
Definition: MQTTClient.h:725
+
MQTTClient_SSLOptions * ssl
This is a pointer to an MQTTClient_SSLOptions structure.
Definition: MQTTClient.h:915
int MQTTPersistence_remove(Clients *c, char *type, int qos, int msgId)
Deletes a record from the persistent store.
Definition: MQTTPersistence.c:533
unsigned int nfds
no of file descriptors for poll
Definition: Socket.h:125
int max_trace_entries
max no of entries in the trace buffer
Definition: Log.h:66
-
int len
binary payload length
Definition: MQTTClient.h:635
+
int len
binary payload length
Definition: MQTTClient.h:647
char lower
lower limit of valid range
Definition: utf-8.c:49
int count
no of items
Definition: LinkedList.h:72
-
A structure representing the payload and attributes of an MQTT message.
Definition: MQTTAsync.h:266
+
A structure representing the payload and attributes of an MQTT message.
Definition: MQTTAsync.h:271
Definition: SocketBuffer.h:33
-
int dup
The dup flag indicates whether or not this message is a duplicate.
Definition: MQTTClient.h:317
-
MQTTAsync_onFailure5 * onFailure5
A pointer to a callback function to be called if the disconnect fails.
Definition: MQTTAsync.h:1449
-
int(* ssl_error_cb)(const char *str, size_t len, void *u)
Callback function for OpenSSL error handler ERR_print_errors_cb Exists only if struct_version >= 3.
Definition: MQTTAsync.h:1121
-
MQTTAsync_token token
A token identifying the successful request.
Definition: MQTTAsync.h:568
-
unsigned int(* ssl_psk_cb)(const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u)
Callback function for setting TLS-PSK options.
Definition: MQTTAsync.h:1134
-
int Thread_signal_cond(cond_type condvar)
Signal a condition variable.
Definition: Thread.c:392
-
Initialization options.
Definition: MQTTClient.h:225
+
int dup
The dup flag indicates whether or not this message is a duplicate.
Definition: MQTTClient.h:321
+
MQTTAsync_onFailure5 * onFailure5
A pointer to a callback function to be called if the disconnect fails.
Definition: MQTTAsync.h:1475
+
int(* ssl_error_cb)(const char *str, size_t len, void *u)
Callback function for OpenSSL error handler ERR_print_errors_cb Exists only if struct_version >= 3.
Definition: MQTTAsync.h:1135
+
MQTTAsync_token token
A token identifying the successful request.
Definition: MQTTAsync.h:573
+
unsigned int(* ssl_psk_cb)(const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *u)
Callback function for setting TLS-PSK options.
Definition: MQTTAsync.h:1148
+
int Thread_signal_cond(cond_type condvar)
Signal a condition variable.
Definition: Thread.c:418
+
Initialization options.
Definition: MQTTClient.h:229
Header header
MQTT header byte.
Definition: MQTTPacket.h:135
int stringcompare(void *a, void *b)
List callback function for comparing C strings.
Definition: LinkedList.c:448
-
const char * password
MQTT servers that support the MQTT v3.1 protocol provide authentication and authorisation by user nam...
Definition: MQTTAsync.h:1248
-
int len
binary password length
Definition: MQTTAsync.h:479
+
const char * password
MQTT servers that support the MQTT v3.1 protocol provide authentication and authorisation by user nam...
Definition: MQTTAsync.h:1267
+
int len
binary password length
Definition: MQTTAsync.h:484
static int ptrCompare(void *a, void *b, int value)
List callback function for comparing storage elements.
Definition: Heap.c:114
List * reasonCodes
list of reason codes
Definition: MQTTPacket.h:190
union Connect::@21 flags
connect flags byte
struct MQTTClient_connectOptions::@18 returned
Returned from the connect when the MQTT version used to connect is 3.1.1.
-
int Socket_putdatas(SOCKET socket, char *buf0, size_t buf0len, PacketBuffers bufs)
Attempts to write a series of buffers to a socket in one system call so that they are sent as one pac...
Definition: Socket.c:733
-
int code
A numeric code identifying the error.
Definition: MQTTAsync.h:535
-
MQTTAsync_onSuccess * onSuccess
A pointer to a callback function to be called if the API call successfully completes.
Definition: MQTTAsync.h:715
-
const char * topicName
The LWT topic to which the LWT message will be published.
Definition: MQTTClient.h:620
-
int qos
For subscribe, the granted QoS of the subscription returned by the server.
Definition: MQTTAsync.h:574
+
int Socket_putdatas(SOCKET socket, char *buf0, size_t buf0len, PacketBuffers bufs)
Attempts to write a series of buffers to a socket in one system call so that they are sent as one pac...
Definition: Socket.c:762
+
int code
A numeric code identifying the error.
Definition: MQTTAsync.h:540
+
MQTTAsync_onSuccess * onSuccess
A pointer to a callback function to be called if the API call successfully completes.
Definition: MQTTAsync.h:720
+
const char * topicName
The LWT topic to which the LWT message will be published.
Definition: MQTTClient.h:632
+
int qos
For subscribe, the granted QoS of the subscription returned by the server.
Definition: MQTTAsync.h:579
heap_info * Heap_get_info(void)
Access to heap state.
Definition: Heap.c:432
-
char * Socket_getpeer(SOCKET sock)
Get information about the other end connected to a socket.
Definition: Socket.c:1399
-
int qos
The quality of service setting for the LWT message (see MQTTAsync_message.qos and qos).
Definition: MQTTAsync.h:1026
-
const char * trustStore
The file in PEM format containing the public digital certificates trusted by the client.
Definition: MQTTClient.h:674
+
char * Socket_getpeer(SOCKET sock)
Get information about the other end connected to a socket.
Definition: Socket.c:1469
+
int qos
The quality of service setting for the LWT message (see MQTTAsync_message.qos and qos).
Definition: MQTTAsync.h:1040
+
const char * trustStore
The file in PEM format containing the public digital certificates trusted by the client.
Definition: MQTTClient.h:686
bool willRetain
will retain setting
Definition: MQTTPacket.h:113
-
MQTTResponse MQTTClient_subscribe5(MQTTClient handle, const char *topic, int qos, MQTTSubscribe_options *opts, MQTTProperties *props)
This function attempts to subscribe an MQTT version 5.0 client to a single topic, which may contain w...
Definition: MQTTClient.c:2109
-
const char * keyStore
The file in PEM format containing the public certificate chain of the client.
Definition: MQTTClient.h:679
+
MQTTResponse MQTTClient_subscribe5(MQTTClient handle, const char *topic, int qos, MQTTSubscribe_options *opts, MQTTProperties *props)
This function attempts to subscribe an MQTT version 5.0 client to a single topic, which may contain w...
Definition: MQTTClient.c:2160
+
const char * keyStore
The file in PEM format containing the public certificate chain of the client.
Definition: MQTTClient.h:691
int MQTTVersion
the version of MQTT
Definition: MQTTPacket.h:219
-
int reliable
This is a boolean value that controls how many messages can be in-flight simultaneously.
Definition: MQTTClient.h:862
+
int reliable
This is a boolean value that controls how many messages can be in-flight simultaneously.
Definition: MQTTClient.h:880
#define MQTTCLIENT_PERSISTENCE_DEFAULT
This persistence_type value specifies the default file system-based persistence mechanism (see MQTTCl...
Definition: MQTTClientPersistence.h:69
-
int cleansession
This is a boolean value.
Definition: MQTTClient.h:852
-
const void * data
binary password data
Definition: MQTTAsync.h:480
+
int cleansession
This is a boolean value.
Definition: MQTTClient.h:870
+
const void * data
binary password data
Definition: MQTTAsync.h:485
enum LOG_LEVELS trace_level
trace level
Definition: Log.h:65
List * connect_pending
list of sockets for which a connect is pending
Definition: Socket.h:114
-
void * ssl_error_context
Application-specific contex for OpenSSL error handler ERR_print_errors_cb Exists only if struct_versi...
Definition: MQTTAsync.h:1127
+
void * ssl_error_context
Application-specific contex for OpenSSL error handler ERR_print_errors_cb Exists only if struct_versi...
Definition: MQTTAsync.h:1141
unsigned int qos
QoS value, 0, 1 or 2.
Definition: MQTTPacket.h:78
unsigned int type
message type nibble
Definition: MQTTPacket.h:80
void MQTTPersistence_insertInOrder(List *list, void *content, size_t size)
Inserts the specified message into the list, maintaining message ID order.
Definition: MQTTPersistence.c:401
int(* Persistence_keys)(void *handle, char ***keys, int *nkeys)
Returns the keys in this persistent data store.
Definition: MQTTClientPersistence.h:186
-
int dup
The dup flag indicates whether or not this message is a duplicate.
Definition: MQTTAsync.h:316
-
MQTTAsync_onFailure * onFailure
A pointer to a callback function to be called if the disconnect fails.
Definition: MQTTAsync.h:1423
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1182
+
int dup
The dup flag indicates whether or not this message is a duplicate.
Definition: MQTTAsync.h:321
+
MQTTAsync_onFailure * onFailure
A pointer to a callback function to be called if the disconnect fails.
Definition: MQTTAsync.h:1449
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTAsync.h:1201
Structure to hold all data for one list element.
Definition: LinkedList.h:56
Header header
MQTT header byte.
Definition: MQTTPacket.h:164
int ListRemoveItem(List *aList, void *content, int(*callback)(void *, void *))
Removes and frees an element in a list by comparing the content.
Definition: LinkedList.c:349
-
int cur_fd
index into the fds_saved array
Definition: Socket.h:129
+
int cur_fd
index into the fds_saved array
Definition: Socket.h:130
struct NodeStruct * child[2]
pointers to child tree nodes 0 = left, 1 = right
Definition: Tree.h:80
bool cleanstart
cleansession flag
Definition: MQTTPacket.h:110
Configuration data related to all clients.
Definition: Clients.h:168
-
int enableServerCertAuth
True/False option to enable verification of the server certificate.
Definition: MQTTAsync.h:1095
+
int enableServerCertAuth
True/False option to enable verification of the server certificate.
Definition: MQTTAsync.h:1109
size_t size
size of the allocated storage
Definition: Heap.c:73
-
char * readUTF(char **pptr, char *enddata)
Reads a "UTF" string from the input buffer.
Definition: MQTTPacket.c:413
-
char * Socket_getaddrname(struct sockaddr *sa, SOCKET sock)
Convert a numeric address to character string.
Definition: Socket.c:1361
-
void MQTTClient_destroy(MQTTClient *handle)
This function frees the memory allocated to an MQTT client (see MQTTClient_create()).
Definition: MQTTClient.c:566
-
void * payload
A pointer to the payload of the MQTT message.
Definition: MQTTAsync.h:276
-
int enableServerCertAuth
True/False option to enable verification of the server certificate.
Definition: MQTTClient.h:700
+
char * readUTF(char **pptr, char *enddata)
Reads a "UTF" string from the input buffer.
Definition: MQTTPacket.c:416
+
char * Socket_getaddrname(struct sockaddr *sa, SOCKET sock)
Convert a numeric address to character string.
Definition: Socket.c:1431
+
void MQTTClient_destroy(MQTTClient *handle)
This function frees the memory allocated to an MQTT client (see MQTTClient_create()).
Definition: MQTTClient.c:583
+
void * payload
A pointer to the payload of the MQTT message.
Definition: MQTTAsync.h:281
+
int enableServerCertAuth
True/False option to enable verification of the server certificate.
Definition: MQTTClient.h:712
unsigned int good
if we have an error on the socket we turn this off
Definition: Clients.h:127
void * MQTTPacket_connack(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create connack packets.
Definition: MQTTPacketOut.c:142
-
int retained
The retained flag for the LWT message (see MQTTAsync_message.retained).
Definition: MQTTAsync.h:1021
+
int retained
The retained flag for the LWT message (see MQTTAsync_message.retained).
Definition: MQTTAsync.h:1035
The data for a length delimited string.
Definition: MQTTProperties.h:84
Persistence_close pclose
A function pointer to an implementation of Persistence_close().
Definition: MQTTClientPersistence.h:227
-
int connectTimeout
The time interval in seconds to allow a connect to complete.
Definition: MQTTAsync.h:1252
+
int connectTimeout
The time interval in seconds to allow a connect to complete.
Definition: MQTTAsync.h:1271
char nextMessageType
used for retry and expiry
Definition: Clients.h:63
void * MQTTPacket_unsuback(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create unsuback packets.
Definition: MQTTPacketOut.c:411
-
int Socket_continueWrite(SOCKET socket)
Continue an outstanding write for a particular socket.
Definition: Socket.c:1165
-
int MQTTClient_subscribeMany(MQTTClient handle, int count, char *const *topic, int *qos)
This function attempts to subscribe a client to a list of topics, which may contain wildcards (see wi...
Definition: MQTTClient.c:2094
-
int struct_version
The version number of this structure.
Definition: MQTTClient.h:820
-
const MQTTAsync_nameValue * httpHeaders
HTTP headers for websockets.
Definition: MQTTAsync.h:1353
+
int Socket_continueWrite(SOCKET socket)
Continue an outstanding write for a particular socket.
Definition: Socket.c:1232
+
int MQTTClient_subscribeMany(MQTTClient handle, int count, char *const *topic, int *qos)
This function attempts to subscribe a client to a list of topics, which may contain wildcards (see wi...
Definition: MQTTClient.c:2145
+
int struct_version
The version number of this structure.
Definition: MQTTClient.h:838
+
const MQTTAsync_nameValue * httpHeaders
HTTP headers for websockets.
Definition: MQTTAsync.h:1372
void ListZero(List *newl)
Sets a list structure to empty - all null values.
Definition: LinkedList.c:42
int Socket_error(char *aString, SOCKET sock)
Gets the specific error corresponding to SOCKET_ERROR.
Definition: Socket.c:109
-
int Socket_continueWrites(SOCKET *socket, mutex_type mutex)
Continue any outstanding socket writes.
Definition: Socket.c:1296
-
void MQTTPacket_freeAck(Ack *pack)
Free allocated storage for an ack packet.
Definition: MQTTPacket.c:625
+
int Socket_continueWrites(SOCKET *socket, mutex_type mutex)
Continue any outstanding socket writes.
Definition: Socket.c:1363
+
void MQTTPacket_freeAck(Ack *pack)
Free allocated storage for an ack packet.
Definition: MQTTPacket.c:628
char fixed_header[5]
header plus up to 4 length bytes
Definition: SocketBuffer.h:38
-
The data returned on completion of an unsuccessful API call in the response callback onFailure.
Definition: MQTTAsync.h:542
-
const char * httpsProxy
HTTPS proxy.
Definition: MQTTClient.h:960
+
The data returned on completion of an unsuccessful API call in the response callback onFailure.
Definition: MQTTAsync.h:547
+
const char * httpsProxy
HTTPS proxy.
Definition: MQTTClient.h:978
pending_writes * SocketBuffer_updateWrite(SOCKET socket, char *topic, char *payload)
Update the queued write data for a socket in the case of QoS 0 messages.
Definition: SocketBuffer.c:424
-
const void * data
binary password data
Definition: MQTTClient.h:939
-
MQTTAsync_onFailure * onFailure
A pointer to a callback function to be called if the API call fails.
Definition: MQTTAsync.h:721
-
int maxBufferedMessages
The maximum number of messages allowed to be buffered.
Definition: MQTTAsync.h:961
-
const char * serverURI
the serverURI connected to
Definition: MQTTClient.h:929
+
const void * data
binary password data
Definition: MQTTClient.h:957
+
MQTTAsync_onFailure * onFailure
A pointer to a callback function to be called if the API call fails.
Definition: MQTTAsync.h:726
+
int maxBufferedMessages
The maximum number of messages allowed to be buffered.
Definition: MQTTAsync.h:975
+
const char * serverURI
the serverURI connected to
Definition: MQTTClient.h:947
static int lines_written
number of lines written to the current output file
Definition: Log.c:106
-
MQTTAsync_willOptions * will
This is a pointer to an MQTTAsync_willOptions structure.
Definition: MQTTAsync.h:1236
-
void MQTTProtocol_keepalive(START_TIME_TYPE now)
MQTT protocol keepAlive processing.
Definition: MQTTProtocolClient.c:685
+
MQTTAsync_willOptions * will
This is a pointer to an MQTTAsync_willOptions structure.
Definition: MQTTAsync.h:1255
+
void MQTTProtocol_keepalive(START_TIME_TYPE now)
MQTT protocol keepAlive processing.
Definition: MQTTProtocolClient.c:700
+
int MQTTProtocol_handlePubrecs(void *pack, SOCKET sock, Publications **pubToRemove)
Process an incoming pubrec packet for a socket.
Definition: MQTTProtocolClient.c:485
int count
no of items
Definition: Tree.h:84
static size_t Heap_roundup(size_t size)
Round allocation size up to a multiple of the size of an int.
Definition: Heap.c:98
-
int msgid
The message identifier is normally reserved for internal use by the MQTT client and server.
Definition: MQTTClient.h:321
-
int MQTTVersion
Sets the version of MQTT to be used on the connect.
Definition: MQTTClient.h:923
-
int disableDefaultTrustStore
Don't load default SSL CA.
Definition: MQTTClient.h:752
-
MQTTAsync_message message
the message being sent to the server
Definition: MQTTAsync.h:581
-
int retained
The retained flag serves two purposes depending on whether the message it is associated with is being...
Definition: MQTTAsync.h:309
-
int MQTTClient_setDisconnected(MQTTClient handle, void *context, MQTTClient_disconnected *disconnected)
Sets the MQTTClient_disconnected() callback function for a client.
Definition: MQTTClient.c:692
+
int msgid
The message identifier is normally reserved for internal use by the MQTT client and server.
Definition: MQTTClient.h:325
+
int MQTTVersion
Sets the version of MQTT to be used on the connect.
Definition: MQTTClient.h:941
+
int disableDefaultTrustStore
Don't load default SSL CA.
Definition: MQTTClient.h:764
+
MQTTAsync_message message
the message being sent to the server
Definition: MQTTAsync.h:586
+
int retained
The retained flag serves two purposes depending on whether the message it is associated with is being...
Definition: MQTTAsync.h:314
+
int MQTTClient_setDisconnected(MQTTClient handle, void *context, MQTTClient_disconnected *disconnected)
Sets the MQTTClient_disconnected() callback function for a client.
Definition: MQTTClient.c:709
union MQTTAsync_successData5::@4 alt
A union of the different values that can be returned for subscribe, unsubscribe and publish.
unsigned char retainAsPublished
To keep the retain flag as on the original publish message, set to 1.
Definition: MQTTSubscribeOpts.h:50
size_t len
length of frame
Definition: WebSocket.c:146
unsigned char rc
MQTT 5 reason code.
Definition: MQTTPacket.h:218
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:709
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:714
Data for a connack packet.
Definition: MQTTPacket.h:133
-
int Thread_destroy_sem(sem_type sem)
Destroy a semaphore which has already been created.
Definition: Thread.c:334
-
void MQTTProtocol_retry(START_TIME_TYPE now, int doRetry, int regardless)
MQTT retry protocol and socket pending writes processing.
Definition: MQTTProtocolClient.c:861
-
int MQTTVersion
Whether the MQTT version is 3.1, 3.1.1, or 5.
Definition: MQTTClient.h:547
+
int Thread_destroy_sem(sem_type sem)
Destroy a semaphore which has already been created.
Definition: Thread.c:360
+
void MQTTProtocol_retry(START_TIME_TYPE now, int doRetry, int regardless)
MQTT retry protocol and socket pending writes processing.
Definition: MQTTProtocolClient.c:877
+
int MQTTVersion
Whether the MQTT version is 3.1, 3.1.1, or 5.
Definition: MQTTClient.h:559
void * context
calling context - used when calling disconnect_internal
Definition: Clients.h:151
-
int MQTTClient_disconnect(MQTTClient handle, int timeout)
This function attempts to disconnect the client from the MQTT server.
Definition: MQTTClient.c:1927
+
int MQTTClient_disconnect(MQTTClient handle, int timeout)
This function attempts to disconnect the client from the MQTT server.
Definition: MQTTClient.c:1971
void SocketBuffer_cleanup(SOCKET socket)
Cleanup any buffers for a specific socket.
Definition: SocketBuffer.c:151
int MQTTVersion
the version of MQTT being used, 3, 4 or 5
Definition: Clients.h:152
Structure to hold all socket data for the module.
Definition: Socket.h:112
unsigned int heap_tracking
switch on heap tracking for this tree?
Definition: Tree.h:86
-
int len
binary password length
Definition: MQTTAsync.h:1323
-
const char * privateKey
If not included in the sslKeyStore, this setting points to the file in PEM format containing the clie...
Definition: MQTTClient.h:684
-
const char * enabledCipherSuites
The list of cipher suites that the client will present to the server during the SSL handshake.
Definition: MQTTClient.h:697
-
void writeChar(char **pptr, char c)
Writes one character to an output buffer.
Definition: MQTTPacket.c:438
+
int len
binary password length
Definition: MQTTAsync.h:1342
+
const char * privateKey
If not included in the sslKeyStore, this setting points to the file in PEM format containing the clie...
Definition: MQTTClient.h:696
+
const char * enabledCipherSuites
The list of cipher suites that the client will present to the server during the SSL handshake.
Definition: MQTTClient.h:709
+
void writeChar(char **pptr, char c)
Writes one character to an output buffer.
Definition: MQTTPacket.c:441
int len
the length of the string
Definition: MQTTProperties.h:86
-
const char * privateKeyPassword
The password to load the client's privateKey if encrypted.
Definition: MQTTAsync.h:1082
-
static void MQTTProtocol_retries(START_TIME_TYPE now, Clients *client, int regardless)
MQTT retry processing per client.
Definition: MQTTProtocolClient.c:751
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1406
+
const char * privateKeyPassword
The password to load the client's privateKey if encrypted.
Definition: MQTTAsync.h:1096
+
static void MQTTProtocol_retries(START_TIME_TYPE now, Clients *client, int regardless)
MQTT retry processing per client.
Definition: MQTTProtocolClient.c:767
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1432
int MQTTPacket_send_subscribe(List *topics, List *qoss, MQTTSubscribe_options *opts, MQTTProperties *props, int msgid, int dup, Clients *client)
Send an MQTT subscribe packet down a socket.
Definition: MQTTPacketOut.c:226
-
struct pollfd * fds
poll read file descriptors
Definition: Socket.h:126
-
int timeout
The client delays disconnection for up to this time (in milliseconds) in order to allow in-flight mes...
Definition: MQTTAsync.h:1411
+
int timeout
The client delays disconnection for up to this time (in milliseconds) in order to allow in-flight mes...
Definition: MQTTAsync.h:1437
#define ARRAY_SIZE(a)
Macro to determine the number of elements in a single-dimension array.
Definition: utf-8.c:37
-
const char * enabledCipherSuites
The list of cipher suites that the client will present to the server during the SSL handshake.
Definition: MQTTAsync.h:1092
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:547
-
void * ssl_error_context
Application-specific contex for OpenSSL error handler ERR_print_errors_cb Exists only if struct_versi...
Definition: MQTTClient.h:732
+
const char * enabledCipherSuites
The list of cipher suites that the client will present to the server during the SSL handshake.
Definition: MQTTAsync.h:1106
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:552
+
void * ssl_error_context
Application-specific contex for OpenSSL error handler ERR_print_errors_cb Exists only if struct_versi...
Definition: MQTTClient.h:744
void SocketBuffer_interrupted(SOCKET socket, size_t actual_len)
A socket read was interrupted so we need to queue data.
Definition: SocketBuffer.c:252
-
MQTTProperties properties
MQTT V5 input properties.
Definition: MQTTAsync.h:1433
-
enum MQTTReasonCodes reasonCode
MQTT V5 reason code returned.
Definition: MQTTAsync.h:602
-
int MQTTClient_unsubscribeMany(MQTTClient handle, int count, char *const *topic)
This function attempts to remove existing subscriptions to a list of topics made by the specified cli...
Definition: MQTTClient.c:2241
-
int MQTTClient_setCallbacks(MQTTClient handle, void *context, MQTTClient_connectionLost *cl, MQTTClient_messageArrived *ma, MQTTClient_deliveryComplete *dc)
This function sets the callback functions for a specific client.
Definition: MQTTClient.c:1041
+
MQTTProperties properties
MQTT V5 input properties.
Definition: MQTTAsync.h:1459
+
enum MQTTReasonCodes reasonCode
MQTT V5 reason code returned.
Definition: MQTTAsync.h:607
+
int MQTTClient_unsubscribeMany(MQTTClient handle, int count, char *const *topic)
This function attempts to remove existing subscriptions to a list of topics made by the specified cli...
Definition: MQTTClient.c:2292
+
int MQTTClient_setCallbacks(MQTTClient handle, void *context, MQTTClient_connectionLost *cl, MQTTClient_messageArrived *ma, MQTTClient_deliveryComplete *dc)
This function sets the callback functions for a specific client.
Definition: MQTTClient.c:1059
struct MQTTAsync_successData5::@4::@6 pub
For publish, the message being sent to the server.
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:955
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:969
char * clientID
string client id
Definition: MQTTPacket.h:121
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:809
-
int sslVersion
The SSL/TLS version to use.
Definition: MQTTAsync.h:1101
-
int MQTTClient_unsubscribe(MQTTClient handle, const char *topic)
This function attempts to remove an existing subscription made by the specified client.
Definition: MQTTClient.c:2258
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:827
+
int sslVersion
The SSL/TLS version to use.
Definition: MQTTAsync.h:1115
+
int MQTTClient_unsubscribe(MQTTClient handle, const char *topic)
This function attempts to remove an existing subscription made by the specified client.
Definition: MQTTClient.c:2315
bool password
3.1 password
Definition: MQTTPacket.h:114
-
int Socket_close_only(SOCKET socket)
Close a socket without removing it from the select list.
Definition: Socket.c:833
+
int Socket_close_only(SOCKET socket)
Close a socket without removing it from the select list.
Definition: Socket.c:862
int msgId
MQTT message id.
Definition: MQTTPacket.h:174
int(* Persistence_put)(void *handle, char *key, int bufcount, char *buffers[], int buflens[])
Put the specified data into the persistent store.
Definition: MQTTClientPersistence.h:140
struct MQTTClient_willOptions::@17 payload
The LWT payload in binary form.
int payloadlen
payload length
Definition: MQTTPacket.h:204
union MQTTAsync_successData::@1 alt
A union of the different values that can be returned for subscribe, unsubscribe and publish.
-
int maxInflight
This controls how many messages can be in-flight simultaneously.
Definition: MQTTAsync.h:1230
+
int maxInflight
This controls how many messages can be in-flight simultaneously.
Definition: MQTTAsync.h:1249
willMessages * will
the MQTT will message, if any
Definition: Clients.h:137
Data for a connect packet.
Definition: MQTTPacket.h:89
-
int disableDefaultTrustStore
Don't load default SSL CA.
Definition: MQTTAsync.h:1147
-
static int MQTTProtocol_queueAck(Clients *client, int ackType, int msgId)
Queue an ack message.
Definition: MQTTProtocolClient.c:834
-
int struct_version
The version number of this structure.
Definition: MQTTClient.h:273
+
int disableDefaultTrustStore
Don't load default SSL CA.
Definition: MQTTAsync.h:1161
+
static int MQTTProtocol_queueAck(Clients *client, int ackType, int msgId)
Queue an ack message.
Definition: MQTTProtocolClient.c:850
+
int struct_version
The version number of this structure.
Definition: MQTTClient.h:277
char * SocketBuffer_complete(SOCKET socket)
A socket read has now completed so we can get rid of the queue.
Definition: SocketBuffer.c:281
void ListEmpty(List *aList)
Removes and frees all items in a list, leaving the list ready for new items.
Definition: LinkedList.c:359
-
int struct_version
The version number of this structure.
Definition: MQTTClient.h:230
+
int struct_version
The version number of this structure.
Definition: MQTTClient.h:234
int struct_version
The version number of this structure.
Definition: MQTTSubscribeOpts.h:41
int messageIDCompare(void *a, void *b)
List callback function for comparing Message structures by message id.
Definition: MQTTProtocolClient.c:73
static const char * UTF8_char_validate(int len, const char *data)
Validate a single UTF-8 character.
Definition: utf-8.c:76
-
int do_openssl_init
1 = we do openssl init, 0 = leave it to the application
Definition: MQTTClient.h:232
-
The data returned on completion of a successful API call in the response callback onSuccess.
Definition: MQTTAsync.h:596
-
const char * CApath
From the OpenSSL documentation: If CApath is not NULL, it points to a directory containing CA certifi...
Definition: MQTTAsync.h:1115
+
int do_openssl_init
1 = we do openssl init, 0 = leave it to the application
Definition: MQTTClient.h:236
+
The data returned on completion of a successful API call in the response callback onSuccess.
Definition: MQTTAsync.h:601
+
const char * CApath
From the OpenSSL documentation: If CApath is not NULL, it points to a directory containing CA certifi...
Definition: MQTTAsync.h:1129
Persistence_keys pkeys
A function pointer to an implementation of Persistence_keys().
Definition: MQTTClientPersistence.h:243
-
unsigned char readChar(char **pptr)
Reads one character from the input buffer.
Definition: MQTTPacket.c:425
+
unsigned char readChar(char **pptr)
Reads one character from the input buffer.
Definition: MQTTPacket.c:428
void SocketBuffer_queueChar(SOCKET socket, char c)
Queued a Charactor to a specific socket.
Definition: SocketBuffer.c:303
int max_count
max number of properties that the currently allocated array can store
Definition: MQTTProperties.h:115
-
int MQTTProtocol_handlePubrels(void *pack, SOCKET sock)
Process an incoming pubrel packet for a socket.
Definition: MQTTProtocolClient.c:553
+
int MQTTProtocol_handlePubrels(void *pack, SOCKET sock)
Process an incoming pubrel packet for a socket.
Definition: MQTTProtocolClient.c:565
static Tree heap
Tree that holds the allocation records.
Definition: Heap.c:79
-
MQTTResponse MQTTClient_connect5(MQTTClient handle, MQTTClient_connectOptions *options, MQTTProperties *connectProperties, MQTTProperties *willProperties)
Attempts to connect a previously-created client (see MQTTClient_create()) to an MQTT server using MQT...
Definition: MQTTClient.c:1677
-
Options for the ::MQTTAsync_disconnect call.
Definition: MQTTAsync.h:1401
+
MQTTResponse MQTTClient_connect5(MQTTClient handle, MQTTClient_connectOptions *options, MQTTProperties *connectProperties, MQTTProperties *willProperties)
Attempts to connect a previously-created client (see MQTTClient_create()) to an MQTT server using MQT...
Definition: MQTTClient.c:1714
+
Options for the ::MQTTAsync_disconnect call.
Definition: MQTTAsync.h:1427
Persistence_remove premove
A function pointer to an implementation of Persistence_remove().
Definition: MQTTClientPersistence.h:239
-
MQTTClient_nameValue * MQTTClient_getVersionInfo(void)
This function returns version information about the library.
Definition: MQTTClient.c:2900
+
MQTTClient_nameValue * MQTTClient_getVersionInfo(void)
This function returns version information about the library.
Definition: MQTTClient.c:2962
MQTTProperties properties
MQTT 5.0 properties.
Definition: MQTTPacket.h:206
MQTTProperties properties
MQTT 5.0 properties.
Definition: MQTTPacket.h:189
int MQTTProtocol_startPublish(Clients *pubclient, Publish *publish, int qos, int retained, Messages **mm)
Start a new publish exchange.
Definition: MQTTProtocolClient.c:171
-
int payloadlen
The length of the MQTT message payload in bytes.
Definition: MQTTClient.h:275
+
int payloadlen
The length of the MQTT message payload in bytes.
Definition: MQTTClient.h:279
static FILE * trace_destination
flag to indicate if trace is to be sent to a stream
Definition: Log.c:103
Definition: Clients.h:79
int SocketBuffer_newDefQ(void)
Create a new default queue when one has just been used.
Definition: SocketBuffer.c:79
-
const char * MQTTClient_strerror(int code)
Returns a pointer to the string representation of the error or NULL.
Definition: MQTTClient.c:2936
+
const char * MQTTClient_strerror(int code)
Returns a pointer to the string representation of the error or NULL.
Definition: MQTTClient.c:2998
Node * root
root node pointer
Definition: Tree.h:80
unsigned char byte
holds the value of a byte property type
Definition: MQTTProperties.h:99
List * ListInitialize(void)
Allocates and initializes a new list structure.
Definition: LinkedList.c:52
@@ -594,57 +595,55 @@

bool dup
DUP flag bit.
Definition: MQTTPacket.h:79
Client will message data.
Definition: Clients.h:70
int SocketBuffer_writeComplete(SOCKET socket)
A socket write has now completed so we can get rid of the queue.
Definition: SocketBuffer.c:411
-
int Thread_destroy_cond(cond_type condvar)
Destroy a condition variable.
Definition: Thread.c:449
-
int maxInflightMessages
The maximum number of messages in flight.
Definition: MQTTClient.h:944
+
int Thread_destroy_cond(cond_type condvar)
Destroy a condition variable.
Definition: Thread.c:475
+
int maxInflightMessages
The maximum number of messages in flight.
Definition: MQTTClient.h:962
int pstclose(void *handle)
Delete client persistence directory (if empty).
Definition: MQTTPersistenceDefault.c:371
-
char *const * serverURIs
Definition: MQTTAsync.h:1299
-
int maxRetryInterval
Maximum retry interval in seconds.
Definition: MQTTAsync.h:1318
-
int MQTTProtocol_handlePubacks(void *pack, SOCKET sock)
Process an incoming puback packet for a socket.
Definition: MQTTProtocolClient.c:430
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:614
-
int keepAliveInterval
The "keep alive" interval, measured in seconds, defines the maximum time that should pass without com...
Definition: MQTTAsync.h:1204
-
int MQTTProtocol_handlePublishes(void *pack, SOCKET sock)
Process an incoming publish packet for a socket The payload field of the packet has not been transfer...
Definition: MQTTProtocolClient.c:317
+
char *const * serverURIs
Definition: MQTTAsync.h:1318
+
int maxRetryInterval
The maximum automatic reconnect retry interval in seconds.
Definition: MQTTAsync.h:1337
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:626
+
int keepAliveInterval
The "keep alive" interval, measured in seconds, defines the maximum time that should pass without com...
Definition: MQTTAsync.h:1223
+
int MQTTProtocol_handlePublishes(void *pack, SOCKET sock)
Process an incoming publish packet for a socket The payload field of the packet has not been transfer...
Definition: MQTTProtocolClient.c:323
ListElement * ListInsert(List *aList, void *content, size_t size, ListElement *index)
Insert an item to a list at a specific position.
Definition: LinkedList.c:107
unsigned int cleanstart
MQTT V5 clean start flag.
Definition: Clients.h:125
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:270
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:274
void * ListPopTail(List *aList)
Removes but does not free the last item in a list.
Definition: LinkedList.c:306
Header header
MQTT header byte.
Definition: MQTTPacket.h:173
char * payload
binary payload, length delimited
Definition: MQTTPacket.h:203
int connect_sent
the current number of outbound messages on reconnect that we've sent
Definition: Clients.h:141
pending_writes * SocketBuffer_getWrite(SOCKET socket)
Get any queued write data for a specific socket.
Definition: SocketBuffer.c:399
-
void * ssl_psk_context
Application-specific contex for ssl_psk_cb Exists only if struct_version >= 4.
Definition: MQTTAsync.h:1140
+
void * ssl_psk_context
Application-specific contex for ssl_psk_cb Exists only if struct_version >= 4.
Definition: MQTTAsync.h:1154
const void * password
MQTT v3.1 binary password.
Definition: Clients.h:123
-
void MQTTProtocol_writeAvailable(SOCKET socket)
Callback that is invoked when the socket is available for writing.
Definition: MQTTProtocolClient.c:988
+
void MQTTProtocol_writeAvailable(SOCKET socket)
Callback that is invoked when the socket is available for writing.
Definition: MQTTProtocolClient.c:1009
int SocketBuffer_initialize(void)
Initialize the socketBuffer module.
Definition: SocketBuffer.c:102
-
int MQTTPacket_send_pubcomp(int MQTTVersion, int msgid, networkHandles *net, const char *clientID)
Send an MQTT PUBCOMP packet down a socket.
Definition: MQTTPacket.c:771
-
int struct_version
The version number of this structure.
Definition: MQTTClient.h:618
+
int MQTTPacket_send_pubcomp(int MQTTVersion, int msgid, networkHandles *net, const char *clientID)
Send an MQTT PUBCOMP packet down a socket.
Definition: MQTTPacket.c:774
+
int struct_version
The version number of this structure.
Definition: MQTTClient.h:630
List * messageQueue
inbound complete but undelivered messages
Definition: Clients.h:142
unsigned int cleansession
MQTT V3 clean session flag.
Definition: Clients.h:124
-
int MQTTVersion
the version of MQTT being used
Definition: MQTTAsync.h:623
-
int MQTTPacket_send_pubrec(int MQTTVersion, int msgid, networkHandles *net, const char *clientID)
Send an MQTT PUBREC packet down a socket.
Definition: MQTTPacket.c:730
-
int MQTTPacket_send(networkHandles *net, Header header, char *buffer, size_t buflen, int freeData, int MQTTVersion)
Sends an MQTT packet in one system call write.
Definition: MQTTPacket.c:190
-
int msgid
The message identifier is reserved for internal use by the MQTT client and server.
Definition: MQTTAsync.h:322
-
int MQTTProtocol_handlePubcomps(void *pack, SOCKET sock)
Process an incoming pubcomp packet for a socket.
Definition: MQTTProtocolClient.c:630
-
const char * value
value string
Definition: MQTTAsync.h:1171
-
sem_type Thread_create_sem(int *rc)
Create a new semaphore.
Definition: Thread.c:190
-
unsigned int protos_len
The length of the vector protos vector Exists only if struct_version >= 5.
Definition: MQTTClient.h:767
-
int Socket_close(SOCKET socket)
Close a socket and remove it from the select list.
Definition: Socket.c:906
+
int MQTTVersion
the version of MQTT being used
Definition: MQTTAsync.h:628
+
int MQTTPacket_send_pubrec(int MQTTVersion, int msgid, networkHandles *net, const char *clientID)
Send an MQTT PUBREC packet down a socket.
Definition: MQTTPacket.c:733
+
int MQTTPacket_send(networkHandles *net, Header header, char *buffer, size_t buflen, int freeData, int MQTTVersion)
Sends an MQTT packet in one system call write.
Definition: MQTTPacket.c:193
+
int msgid
The message identifier is reserved for internal use by the MQTT client and server.
Definition: MQTTAsync.h:327
+
const char * value
value string
Definition: MQTTAsync.h:1185
+
sem_type Thread_create_sem(int *rc)
Create a new semaphore.
Definition: Thread.c:216
+
unsigned int protos_len
The length of the vector protos vector Exists only if struct_version >= 5.
Definition: MQTTClient.h:779
+
int Socket_close(SOCKET socket)
Close a socket and remove it from the select list.
Definition: Socket.c:935
static int max_lines_per_file
maximum number of lines to write to one trace file
Definition: Log.c:107
Structure to hold all data for one tree.
Definition: Tree.h:76
void * ptr
pointer to the allocated storage
Definition: Heap.c:72
List * outboundMsgs
outbound in flight messages
Definition: Clients.h:139
Each item on the heap is recorded with this structure.
Definition: Heap.c:68
-
const char * username
MQTT servers that support the MQTT v3.1 protocol provide authentication and authorisation by user nam...
Definition: MQTTAsync.h:472
-
Options for the MQTTClient_createWithOptions call.
Definition: MQTTClient.h:536
+
const char * username
MQTT servers that support the MQTT v3.1 protocol provide authentication and authorisation by user nam...
Definition: MQTTAsync.h:477
+
Options for the MQTTClient_createWithOptions call.
Definition: MQTTClient.h:548
Publications * MQTTProtocol_storePublication(Publish *publish, int *len)
Store message data for possible retry.
Definition: MQTTProtocolClient.c:262
-
int(* ssl_error_cb)(const char *str, size_t len, void *u)
Callback function for OpenSSL error handler ERR_print_errors_cb Exists only if struct_version >= 3.
Definition: MQTTClient.h:726
+
int(* ssl_error_cb)(const char *str, size_t len, void *u)
Callback function for OpenSSL error handler ERR_print_errors_cb Exists only if struct_version >= 3.
Definition: MQTTClient.h:738
Persistence_open popen
A function pointer to an implementation of Persistence_open().
Definition: MQTTClientPersistence.h:223
-
int Thread_post_sem(sem_type sem)
Post a semaphore.
Definition: Thread.c:306
-
int Socket_writev(SOCKET socket, iobuf *iovecs, int count, unsigned long *bytes)
Attempts to write a series of iovec buffers to a socket in one system call so that they are sent as o...
Definition: Socket.c:661
+
int Thread_post_sem(sem_type sem)
Post a semaphore.
Definition: Thread.c:332
+
int Socket_writev(SOCKET socket, iobuf *iovecs, int count, unsigned long *bytes)
Attempts to write a series of iovec buffers to a socket in one system call so that they are sent as o...
Definition: Socket.c:690
int UTF8_validateString(const char *string)
Validate a null-terminated string has only UTF-8 characters.
Definition: utf-8.c:156
-
int Socket_getch(SOCKET socket, char *c)
Reads one byte from a socket.
Definition: Socket.c:560
-
int MQTTPacket_encode(char *buf, size_t length)
Encodes the message length according to the MQTT algorithm.
Definition: MQTTPacket.c:297
-
char * destinationName
the topic destination for the message
Definition: MQTTAsync.h:582
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:465
+
int Socket_getch(SOCKET socket, char *c)
Reads one byte from a socket.
Definition: Socket.c:589
+
int MQTTPacket_encode(char *buf, size_t length)
Encodes the message length according to the MQTT algorithm.
Definition: MQTTPacket.c:300
+
char * destinationName
the topic destination for the message
Definition: MQTTAsync.h:587
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:470
unsigned int connected
whether it is currently connected
Definition: Clients.h:126
ListElement * ListAppend(List *aList, void *content, size_t size)
Append an item to a list.
Definition: LinkedList.c:90
int MQTTProtocol_handleUnsubacks(void *pack, SOCKET sock)
Process an incoming unsuback packet for a socket.
Definition: MQTTProtocolOut.c:444
@@ -653,227 +652,228 @@

void * beforeWrite_context
context to be used with the persistence beforeWrite callbacks
Definition: Clients.h:149
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTSubscribeOpts.h:38
static int ListUnlink(List *aList, void *content, int(*callback)(void *, void *), int freeContent)
Removes and optionally frees an element in a list by comparing the content.
Definition: LinkedList.c:201
-
int retryInterval
The time interval in seconds after which unacknowledged publish requests are retried during a TCP ses...
Definition: MQTTAsync.h:1260
-
void MQTTProtocol_emptyMessageList(List *msgList)
Empty a message list, leaving it able to accept new messages.
Definition: MQTTProtocolClient.c:952
+
int retryInterval
The time interval in seconds after which unacknowledged publish requests are retried during a TCP ses...
Definition: MQTTAsync.h:1279
+
void MQTTProtocol_emptyMessageList(List *msgList)
Empty a message list, leaving it able to accept new messages.
Definition: MQTTProtocolClient.c:973
bool retain
retained flag bit
Definition: MQTTPacket.h:77
static const char * packet_names[]
List of the predefined MQTT v3/v5 packet names.
Definition: MQTTPacket.c:50
int MQTTProtocol_unsubscribe(Clients *client, List *topics, int msgID, MQTTProperties *props)
MQTT outgoing unsubscribe processing for a client.
Definition: MQTTProtocolOut.c:427
#define _unlink
_unlink mapping for linux
Definition: Log.c:59
char ** buffers
number of buffers/buflens/frees
Definition: Socket.h:102
List * outboundQueue
outbound queued messages
Definition: Clients.h:143
-
static char * readUTFlen(char **pptr, char *enddata, int *len)
Reads a "UTF" string from the input buffer.
Definition: MQTTPacket.c:380
-
const char * password
MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user n...
Definition: MQTTClient.h:880
+
static char * readUTFlen(char **pptr, char *enddata, int *len)
Reads a "UTF" string from the input buffer.
Definition: MQTTPacket.c:383
+
const char * password
MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user n...
Definition: MQTTClient.h:898
int MQTTPacket_send_unsubscribe(List *topics, MQTTProperties *props, int msgid, int dup, Clients *client)
Send an MQTT unsubscribe packet down a socket.
Definition: MQTTPacketOut.c:362
-
const char * username
MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user n...
Definition: MQTTClient.h:874
+
const char * username
MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user n...
Definition: MQTTClient.h:892
Data for one of the ack packets.
Definition: MQTTPacket.h:214
-
char * MQTTStrdup(const char *src)
Duplicate a string, safely, allocating space on the heap.
Definition: MQTTProtocolClient.c:1060
-
void * MQTTPacket_header_only(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create packets which have only a header.
Definition: MQTTPacket.c:495
-
void Socket_outTerminate(void)
Terminate the socket module.
Definition: Socket.c:169
-
Definition: MQTTAsyncUtils.h:148
+
char * MQTTStrdup(const char *src)
Duplicate a string, safely, allocating space on the heap.
Definition: MQTTProtocolClient.c:1081
+
void * MQTTPacket_header_only(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create packets which have only a header.
Definition: MQTTPacket.c:498
+
void Socket_outTerminate(void)
Terminate the socket module.
Definition: Socket.c:171
+
Definition: MQTTAsyncUtils.h:149
Definition: MQTTProperties.c:28
-
const char * httpProxy
HTTP proxy.
Definition: MQTTAsync.h:1357
+
const char * httpProxy
HTTP proxy.
Definition: MQTTAsync.h:1376
Persistence_containskey pcontainskey
A function pointer to an implementation of Persistence_containskey().
Definition: MQTTClientPersistence.h:251
unsigned char retainHandling
0 - send retained messages at the time of the subscribe (original MQTT behaviour) 1 - send retained m...
Definition: MQTTSubscribeOpts.h:55
-
int MQTTClient_create(MQTTClient *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context)
This function creates an MQTT client ready for connection to the specified server and using the speci...
Definition: MQTTClient.c:517
-
MQTTAsync_onSuccess5 * onSuccess5
A pointer to a callback function to be called if the disconnect successfully completes.
Definition: MQTTAsync.h:1443
+
int MQTTClient_create(MQTTClient *handle, const char *serverURI, const char *clientId, int persistence_type, void *persistence_context)
This function creates an MQTT client ready for connection to the specified server and using the speci...
Definition: MQTTClient.c:534
+
MQTTAsync_onSuccess5 * onSuccess5
A pointer to a callback function to be called if the disconnect successfully completes.
Definition: MQTTAsync.h:1469
int MQTTPersistence_restoreMessageQueue(Clients *c)
Restores a queue of messages from persistence to memory.
Definition: MQTTPersistence.c:856
const char * Messages_get(int index, enum LOG_LEVELS log_level)
Get a log message by its index.
Definition: Messages.c:95
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1066
-
int readInt(char **pptr)
Calculates an integer from two bytes read from the input buffer.
Definition: MQTTPacket.c:359
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1080
+
int readInt(char **pptr)
Calculates an integer from two bytes read from the input buffer.
Definition: MQTTPacket.c:362
Definition: Log.h:63
void * TreeAddByIndex(Tree *aTree, void *content, size_t size, int index)
Add an item to a tree.
Definition: Tree.c:210
int websocket
socket has been upgraded to use web sockets
Definition: Clients.h:93
-
const char * privateKeyPassword
The password to load the client's privateKey if encrypted.
Definition: MQTTClient.h:687
-
Initialization options.
Definition: MQTTAsync.h:226
+
const char * privateKeyPassword
The password to load the client's privateKey if encrypted.
Definition: MQTTClient.h:699
+
Initialization options.
Definition: MQTTAsync.h:231
Persistence_clear pclear
A function pointer to an implementation of Persistence_clear().
Definition: MQTTClientPersistence.h:247
void MQTTPersistence_wrapMsgID(Clients *client)
Checks whether the message IDs wrapped by looking for the largest gap between two consecutive message...
Definition: MQTTPersistence.c:605
-
int qos
The quality of service (QoS) assigned to the message.
Definition: MQTTAsync.h:290
-
MQTTAsync_token token
A token identifying the failed request.
Definition: MQTTAsync.h:533
+
int qos
The quality of service (QoS) assigned to the message.
Definition: MQTTAsync.h:295
+
MQTTAsync_token token
A token identifying the failed request.
Definition: MQTTAsync.h:538
int msgId
MQTT message id.
Definition: MQTTPacket.h:202
static heap_info state
global heap state information
Definition: Heap.c:58
-
int retryInterval
The time interval in seconds after which unacknowledged publish requests are retried during a TCP ses...
Definition: MQTTClient.h:892
+
int retryInterval
The time interval in seconds after which unacknowledged publish requests are retried during a TCP ses...
Definition: MQTTClient.h:910
int(* compare)(void *, void *, int)
comparison function
Definition: Tree.h:81
-
MQTTAsync_token token
A token is returned from the call.
Definition: MQTTAsync.h:733
+
MQTTAsync_token token
A token is returned from the call.
Definition: MQTTAsync.h:739
List * qoss
list of granted QoSs (MQTT 3/4) / reason codes (MQTT 5)
Definition: MQTTPacket.h:177
-
const unsigned char * protos
The protocol-lists must be in wire-format, which is defined as a vector of non-empty,...
Definition: MQTTAsync.h:1156
-
int Thread_lock_mutex(mutex_type mutex)
Lock a mutex which has alrea.
Definition: Thread.c:111
+
const unsigned char * protos
The protocol-lists must be in wire-format, which is defined as a vector of non-empty,...
Definition: MQTTAsync.h:1170
+
int Thread_lock_mutex(mutex_type mutex)
Lock a mutex which has alrea.
Definition: Thread.c:137
int pending_socketcompare(void *a, void *b)
List callback function for comparing pending_writes by socket.
Definition: SocketBuffer.c:388
void * afterRead_context
context to be used with the persistence afterRead callback
Definition: Clients.h:150
-
MQTTResponse MQTTClient_unsubscribe5(MQTTClient handle, const char *topic, MQTTProperties *props)
This function attempts to remove an existing subscription made by the specified client using MQTT 5....
Definition: MQTTClient.c:2249
+
MQTTResponse MQTTClient_unsubscribe5(MQTTClient handle, const char *topic, MQTTProperties *props)
This function attempts to remove an existing subscription made by the specified client using MQTT 5....
Definition: MQTTClient.c:2306
int msgID
the MQTT message id
Definition: Clients.h:133
-
const unsigned char * protos
The protocol-lists must be in wire-format, which is defined as a vector of non-empty,...
Definition: MQTTClient.h:761
+
const unsigned char * protos
The protocol-lists must be in wire-format, which is defined as a vector of non-empty,...
Definition: MQTTClient.h:773
int MQTTPersistence_clear(Clients *c)
Clears the persistent store.
Definition: MQTTPersistence.c:166
static socket_queue * def_queue
Default input queue buffer.
Definition: SocketBuffer.c:45
uint8_t mask[4]
the websockets mask the payload is masked with, if any
Definition: MQTTPacket.h:207
void Log_stackTrace(enum LOG_LEVELS log_level, int msgno, thread_id_type thread_id, int current_depth, const char *name, int line, int *rc)
The reason for this function is to make trace logging as fast as possible so that the function exit/e...
Definition: Log.c:456
-
static int MQTTPacket_send_ack(int MQTTVersion, int type, int msgid, int dup, networkHandles *net)
Send an MQTT acknowledgement packet down a socket.
Definition: MQTTPacket.c:644
+
static int MQTTPacket_send_ack(int MQTTVersion, int type, int msgid, int dup, networkHandles *net)
Send an MQTT acknowledgement packet down a socket.
Definition: MQTTPacket.c:647
int passwordlen
MQTT password length.
Definition: Clients.h:122
-
MQTTProperties properties
The MQTT V5 properties associated with the message.
Definition: MQTTClient.h:325
-
const char * name
name string
Definition: MQTTAsync.h:1170
+
MQTTProperties properties
The MQTT V5 properties associated with the message.
Definition: MQTTClient.h:329
+
const char * name
name string
Definition: MQTTAsync.h:1184
int * frees
array of lengths of buffers
Definition: Socket.h:104
-
int MQTTClient_getPendingDeliveryTokens(MQTTClient handle, MQTTClient_deliveryToken **tokens)
This function sets a pointer to an array of delivery tokens for messages that are currently in-flight...
Definition: MQTTClient.c:2832
+
int MQTTClient_getPendingDeliveryTokens(MQTTClient handle, MQTTClient_deliveryToken **tokens)
This function sets a pointer to an array of delivery tokens for messages that are currently in-flight...
Definition: MQTTClient.c:2894
int MQTTPersistence_close(Clients *c)
Close persistent store.
Definition: MQTTPersistence.c:137
-
MQTTProperties properties
The MQTT V5 properties associated with the message.
Definition: MQTTAsync.h:326
+
MQTTProperties properties
The MQTT V5 properties associated with the message.
Definition: MQTTAsync.h:331
MQTTProperties properties
MQTT 5.0 properties.
Definition: MQTTPacket.h:176
-
MQTTAsync_onFailure5 * onFailure5
A pointer to a callback function to be called if the connect fails.
Definition: MQTTAsync.h:1349
+
MQTTAsync_onFailure5 * onFailure5
A pointer to a callback function to be called if the connect fails.
Definition: MQTTAsync.h:1368
int pstremove(void *handle, char *key)
Delete a persisted message from the client persistence directory.
Definition: MQTTPersistenceDefault.c:322
-
MQTTProperties properties
The MQTT properties on the ack, if any.
Definition: MQTTAsync.h:553
-
MQTTProperties * willProperties
MQTT V5 properties for the will message in the connect.
Definition: MQTTAsync.h:1337
-
The data returned on completion of a successful API call in the response callback onSuccess.
Definition: MQTTAsync.h:565
+
MQTTProperties properties
The MQTT properties on the ack, if any.
Definition: MQTTAsync.h:558
+
MQTTProperties * willProperties
MQTT V5 properties for the will message in the connect.
Definition: MQTTAsync.h:1356
+
The data returned on completion of a successful API call in the response callback onSuccess.
Definition: MQTTAsync.h:570
A structure containing the function pointers to a persistence implementation and the context or state...
Definition: MQTTClientPersistence.h:215
int keepAliveInterval
the MQTT keep alive interval
Definition: Clients.h:134
struct MQTTAsync_successData5::@4::@5 sub
For subscribeMany, the list of reasonCodes returned by the server.
int MQTTVersion
the version of MQTT
Definition: MQTTPacket.h:188
-
The data returned on completion of an unsuccessful API call in the response callback onFailure.
Definition: MQTTAsync.h:530
+
The data returned on completion of an unsuccessful API call in the response callback onFailure.
Definition: MQTTAsync.h:535
Bitfields for the MQTT header byte.
Definition: MQTTPacket.h:63
Structure to hold all data for one list.
Definition: LinkedList.h:67
-
void Socket_addPendingWrite(SOCKET socket)
Add a socket to the pending write list, so that it is checked for writing in select.
Definition: Socket.c:807
+
void Socket_addPendingWrite(SOCKET socket)
Add a socket to the pending write list, so that it is checked for writing in select.
Definition: Socket.c:836
Structure to hold an MQTT version 5 property of any type.
Definition: MQTTProperties.h:94
This structure represents a persistent data store, used to store outbound and inbound messages,...
-
const char * httpProxy
HTTP proxy.
Definition: MQTTClient.h:956
-
Definition: Thread.h:46
-
MQTTResponse MQTTClient_publish5(MQTTClient handle, const char *topicName, int payloadlen, const void *payload, int qos, int retained, MQTTProperties *properties, MQTTClient_deliveryToken *deliveryToken)
Attempts to publish a message to a given topic using MQTT version 5.0 (see also MQTTClient_publishMes...
Definition: MQTTClient.c:2266
-
const char * message
The LWT payload in string form.
Definition: MQTTClient.h:622
+
const char * httpProxy
HTTP proxy.
Definition: MQTTClient.h:974
+
Definition: Thread.h:55
+
MQTTResponse MQTTClient_publish5(MQTTClient handle, const char *topicName, int payloadlen, const void *payload, int qos, int retained, MQTTProperties *properties, MQTTClient_deliveryToken *deliveryToken)
Attempts to publish a message to a given topic using MQTT version 5.0 (see also MQTTClient_publishMes...
Definition: MQTTClient.c:2323
+
const char * message
The LWT payload in string form.
Definition: MQTTClient.h:634
MQTTPersistence_beforeWrite * beforeWrite
persistence write callback
Definition: Clients.h:147
-
enum MQTTReasonCodes reasonCode
Reason code for MQTTV5 disconnect.
Definition: MQTTAsync.h:1437
+
enum MQTTReasonCodes reasonCode
Reason code for MQTTV5 disconnect.
Definition: MQTTAsync.h:1463
MQTTProperties properties
MQTT 5.0 properties.
Definition: MQTTPacket.h:155
struct MQTTAsync_connectData::@0 binarypwd
The password parameter of the MQTT authentication.
struct MQTTAsync_connectOptions::@10 binarypwd
Optional binary password.
-
void MQTTPacket_free_packet(MQTTPacket *pack)
Free allocated storage for a various packet tyoes.
Definition: MQTTPacket.c:922
-
const char * httpsProxy
HTTPS proxy.
Definition: MQTTAsync.h:1361
+
void MQTTPacket_free_packet(MQTTPacket *pack)
Free allocated storage for a various packet tyoes.
Definition: MQTTPacket.c:925
+
const char * httpsProxy
HTTPS proxy.
Definition: MQTTAsync.h:1380
void * mymalloc(char *file, int line, size_t size)
Allocates a block of memory.
Definition: Heap.c:158
int len
number of elements in the following array (1 to 4)
Definition: utf-8.c:46
-
MQTTAsync_connectOptions defines several settings that control the way the client connects to an MQTT...
Definition: MQTTAsync.h:1179
-
char * Socket_getdata(SOCKET socket, size_t bytes, size_t *actual_len, int *rc)
Attempts to read a number of bytes from a socket, non-blocking.
Definition: Socket.c:598
-
void * context
A pointer to any application-specific context.
Definition: MQTTAsync.h:727
+
MQTTAsync_connectOptions defines several settings that control the way the client connects to an MQTT...
Definition: MQTTAsync.h:1198
+
char * Socket_getdata(SOCKET socket, size_t bytes, size_t *actual_len, int *rc)
Attempts to read a number of bytes from a socket, non-blocking.
Definition: Socket.c:627
+
void * context
A pointer to any application-specific context.
Definition: MQTTAsync.h:732
size_t buflen
total length of the buffer
Definition: SocketBuffer.h:39
-
MQTT version 5.0 response information.
Definition: MQTTClient.h:998
-
unsigned int protos_len
The length of the vector protos vector Exists only if struct_version >= 5.
Definition: MQTTAsync.h:1162
+
MQTT version 5.0 response information.
Definition: MQTTClient.h:1024
+
unsigned int protos_len
The length of the vector protos vector Exists only if struct_version >= 5.
Definition: MQTTAsync.h:1176
ListElement * last
last element in the list
Definition: LinkedList.h:70
-
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:539
+
char struct_id[4]
The eyecatcher for this structure.
Definition: MQTTClient.h:551
Data related to one client.
Definition: Clients.h:118
int retryInterval
the MQTT retry interval for QoS > 0
Definition: Clients.h:135
ListElement * ListFind(List *aList, void *content)
Finds an element in a list by comparing the content pointers, rather than the contents.
Definition: LinkedList.c:140
void Heap_unlink(char *file, int line, void *p)
Remove an item from the recorded heap without actually freeing it.
Definition: Heap.c:300
size_t pos
current position within the buffer
Definition: WebSocket.c:147
-
int Thread_unlock_mutex(mutex_type mutex)
Unlock a mutex which has already been locked.
Definition: Thread.c:132
+
int Thread_unlock_mutex(mutex_type mutex)
Unlock a mutex which has already been locked.
Definition: Thread.c:158
ListElement * first
first element in the list
Definition: LinkedList.h:69
pf new_packets[]
Array of functions to build packets, indexed according to packet code.
Definition: MQTTPacket.c:73
void * context
A pointer to any data required to initialize the persistent store.
Definition: MQTTClientPersistence.h:219
int Heap_initialize(void)
Heap initialization.
Definition: Heap.c:406
char * willTopic
will topic
Definition: MQTTPacket.h:122
-
const void * data
binary payload data
Definition: MQTTAsync.h:1031
-
mutex_type Thread_create_mutex(int *rc)
Create a new mutex.
Definition: Thread.c:88
+
const void * data
binary payload data
Definition: MQTTAsync.h:1045
+
mutex_type Thread_create_mutex(int *rc)
Create a new mutex.
Definition: Thread.c:114
unsigned char noLocal
To not receive our own publications, set to 1.
Definition: MQTTSubscribeOpts.h:45
-
MQTTAsync_onFailure * onFailure
A pointer to a callback function to be called if the connect fails.
Definition: MQTTAsync.h:1277
-
MQTTAsync_onFailure5 * onFailure5
A pointer to a callback function to be called if the API call successfully completes.
Definition: MQTTAsync.h:745
-
void MQTTPacket_freePublish(Publish *pack)
Free allocated storage for a publish packet.
Definition: MQTTPacket.c:609
-
void writeUTF(char **pptr, const char *string)
Writes a "UTF" string to an output buffer.
Definition: MQTTPacket.c:464
+
MQTTAsync_onFailure * onFailure
A pointer to a callback function to be called if the connect fails.
Definition: MQTTAsync.h:1296
+
MQTTAsync_onFailure5 * onFailure5
A pointer to a callback function to be called if the API call successfully completes.
Definition: MQTTAsync.h:751
+
void MQTTPacket_freePublish(Publish *pack)
Free allocated storage for a publish packet.
Definition: MQTTPacket.c:612
+
void writeUTF(char **pptr, const char *string)
Writes a "UTF" string to an output buffer.
Definition: MQTTPacket.c:467
ListElement * ListPrevElement(List *aList, ListElement **pos)
Backward iteration through a list.
Definition: LinkedList.c:424
int count
number of property entries in the array
Definition: MQTTProperties.h:114
Sockets mod_s
Structure to hold all socket data for this module.
Definition: Socket.c:72
char * Protocol
MQTT protocol name.
Definition: MQTTPacket.h:120
const char * MQTTPacket_name(int ptype)
Converts an MQTT packet code into its name.
Definition: MQTTPacket.c:65
-
void writeInt(char **pptr, int anInt)
Writes an integer as 2 bytes to an output buffer.
Definition: MQTTPacket.c:450
-
int MQTTPacket_send_pubrel(int MQTTVersion, int msgid, int dup, networkHandles *net, const char *clientID)
Send an MQTT PUBREL packet down a socket.
Definition: MQTTPacket.c:751
+
void writeInt(char **pptr, int anInt)
Writes an integer as 2 bytes to an output buffer.
Definition: MQTTPacket.c:453
+
int MQTTPacket_send_pubrel(int MQTTVersion, int msgid, int dup, networkHandles *net, const char *clientID)
Send an MQTT PUBREL packet down a socket.
Definition: MQTTPacket.c:754
MQTTProperty * array
array of properties
Definition: MQTTProperties.h:117
-
void MQTTClient_freeMessage(MQTTClient_message **message)
This function frees memory allocated to an MQTT message, including the additional memory allocated to...
Definition: MQTTClient.c:611
-
const void * data
binary password data
Definition: MQTTAsync.h:1324
+
void MQTTClient_freeMessage(MQTTClient_message **message)
This function frees memory allocated to an MQTT message, including the additional memory allocated to...
Definition: MQTTClient.c:628
+
const void * data
binary password data
Definition: MQTTAsync.h:1343
+
int MQTTProtocol_handlePubcomps(void *pack, SOCKET sock, Publications **pubToRemove)
Process an incoming pubcomp packet for a socket.
Definition: MQTTProtocolClient.c:642
union Connack::@23 flags
connack flags byte
char byte
the whole byte
Definition: MQTTPacket.h:65
Definition: StackTrace.c:53
-
int MQTTVersion
current MQTT version being used to connect
Definition: MQTTAsyncUtils.h:83
+
int MQTTVersion
current MQTT version being used to connect
Definition: MQTTAsyncUtils.h:84
static char * trace_destination_name
the name of the trace file
Definition: Log.c:104
-
MQTTAsync_message message
the message being sent to the server
Definition: MQTTAsync.h:616
+
int MQTTProtocol_handlePubacks(void *pack, SOCKET sock, Publications **pubToRemove)
Process an incoming puback packet for a socket.
Definition: MQTTProtocolClient.c:436
+
MQTTAsync_message message
the message being sent to the server
Definition: MQTTAsync.h:621
char upper
upper limit of valid range
Definition: utf-8.c:50
-
int retained
The retained flag serves two purposes depending on whether the message it is associated with is being...
Definition: MQTTClient.h:310
+
int retained
The retained flag serves two purposes depending on whether the message it is associated with is being...
Definition: MQTTClient.h:314
int ListDetachItem(List *aList, void *content, int(*callback)(void *, void *))
Removes but does not free an element in a list by comparing the content.
Definition: LinkedList.c:335
-
int MQTTClient_connect(MQTTClient handle, MQTTClient_connectOptions *options)
This function attempts to connect a previously-created client (see MQTTClient_create()) to an MQTT se...
Definition: MQTTClient.c:1663
-
int reasonCodeCount
the number of reason codes in the reasonCodes array
Definition: MQTTAsync.h:610
-
int isReady(int index)
Don't accept work from a client unless it is accepting work back, i.e.
Definition: Socket.c:325
-
int struct_version
The version number of this structure.
Definition: MQTTClient.h:671
+
int MQTTClient_connect(MQTTClient handle, MQTTClient_connectOptions *options)
This function attempts to connect a previously-created client (see MQTTClient_create()) to an MQTT se...
Definition: MQTTClient.c:1700
+
int reasonCodeCount
the number of reason codes in the reasonCodes array
Definition: MQTTAsync.h:615
+
int isReady(int index)
Don't accept work from a client unless it is accepting work back, i.e.
Definition: Socket.c:344
+
int struct_version
The version number of this structure.
Definition: MQTTClient.h:683
static int Internal_heap_unlink(char *file, int line, void *p)
Remove an item from the recorded heap without actually freeing it.
Definition: Heap.c:245
char * FindString(char *filename, const char *eyecatcher_input)
Finds an eyecatcher in a binary file and returns the following value.
Definition: MQTTVersion.c:74
-
MQTTProperties properties
MQTT V5 input properties.
Definition: MQTTAsync.h:749
+
MQTTProperties properties
MQTT V5 input properties.
Definition: MQTTAsync.h:755
int(* Persistence_open)(void **handle, const char *clientID, const char *serverURI, void *context)
Initialize the persistent store.
Definition: MQTTClientPersistence.h:113
Definition: Log.c:80
void * MQTTPacket_Factory(int MQTTVersion, networkHandles *net, int *error)
Reads one MQTT packet from a socket.
Definition: MQTTPacket.c:103
-
int sslVersion
The SSL/TLS version to use.
Definition: MQTTClient.h:706
+
int sslVersion
The SSL/TLS version to use.
Definition: MQTTClient.h:718
int pstopen(void **handle, const char *clientID, const char *serverURI, void *context)
Create persistence directory for the client: context/clientID-serverURI.
Definition: MQTTPersistenceDefault.c:65
Definition: SHA1.h:39
-
int MQTTClient_waitForCompletion(MQTTClient handle, MQTTClient_deliveryToken mdt, unsigned long timeout)
This function is called by the client application to synchronize execution of the main thread with co...
Definition: MQTTClient.c:2790
-
Definition: MQTTAsyncUtils.h:88
-
int do_openssl_init
1 = we do openssl init, 0 = leave it to the application
Definition: MQTTAsync.h:233
-
int MQTTPacket_VBIdecode(int(*getcharfn)(char *, int), unsigned int *value)
Decodes the message length according to the MQTT algorithm.
Definition: MQTTPacket.c:1029
-
void MQTTResponse_free(MQTTResponse response)
Frees the storage associated with the MQTT response.
Definition: MQTTClient.c:630
+
int MQTTClient_waitForCompletion(MQTTClient handle, MQTTClient_deliveryToken mdt, unsigned long timeout)
This function is called by the client application to synchronize execution of the main thread with co...
Definition: MQTTClient.c:2852
+
Definition: MQTTAsyncUtils.h:89
+
int do_openssl_init
1 = we do openssl init, 0 = leave it to the application
Definition: MQTTAsync.h:238
+
int MQTTPacket_VBIdecode(int(*getcharfn)(char *, int), unsigned int *value)
Decodes the message length according to the MQTT algorithm.
Definition: MQTTPacket.c:1032
+
void MQTTResponse_free(MQTTResponse response)
Frees the storage associated with the MQTT response.
Definition: MQTTClient.c:647
Header header
MQTT header byte.
Definition: MQTTPacket.h:199
-
int automaticReconnect
Reconnect automatically in the case of a connection being lost?
Definition: MQTTAsync.h:1310
-
int Socket_abortWrite(SOCKET socket)
Continue an outstanding write for a particular socket.
Definition: Socket.c:1250
-
int Socket_noPendingWrites(SOCKET socket)
Indicate whether any data is pending outbound for a socket.
Definition: Socket.c:645
-
MQTTAsync_onSuccess5 * onSuccess5
A pointer to a callback function to be called if the API call successfully completes.
Definition: MQTTAsync.h:739
+
int automaticReconnect
Reconnect automatically in the case of a connection being lost.
Definition: MQTTAsync.h:1329
+
int Socket_abortWrite(SOCKET socket)
Continue an outstanding write for a particular socket.
Definition: Socket.c:1317
+
int Socket_noPendingWrites(SOCKET socket)
Indicate whether any data is pending outbound for a socket.
Definition: Socket.c:674
+
MQTTAsync_onSuccess5 * onSuccess5
A pointer to a callback function to be called if the API call successfully completes.
Definition: MQTTAsync.h:745
int pstmkdir(char *pPathname)
Function to create a directory.
Definition: MQTTPersistenceDefault.c:165
int MQTTPersistence_beforeWrite(void *context, int bufcount, char *buffers[], int buflens[])
A callback which is invoked just before a write to persistence.
Definition: MQTTClientPersistence.h:264
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:272
-
void writeInt4(char **pptr, int anInt)
Writes an integer as 4 bytes to an output buffer.
Definition: MQTTPacket.c:942
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:277
+
void writeInt4(char **pptr, int anInt)
Writes an integer as 4 bytes to an output buffer.
Definition: MQTTPacket.c:945
void ListFree(List *aList)
Removes and frees all items in a list, and frees the list itself.
Definition: LinkedList.c:381
-
int MQTTPacket_send_puback(int MQTTVersion, int msgid, networkHandles *net, const char *clientID)
Send an MQTT PUBACK packet down a socket.
Definition: MQTTPacket.c:676
+
int MQTTPacket_send_puback(int MQTTVersion, int msgid, networkHandles *net, const char *clientID)
Send an MQTT PUBACK packet down a socket.
Definition: MQTTPacket.c:679
char * file
the name of the source file where the storage was allocated
Definition: Heap.c:70
-
int MQTTClient_setCommandTimeout(MQTTClient handle, unsigned long milliSeconds)
Sets the timeout value for un/subscribe commands when waiting for the un/suback response from the ser...
Definition: MQTTClient.c:2885
+
int MQTTClient_setCommandTimeout(MQTTClient handle, unsigned long milliSeconds)
Sets the timeout value for un/subscribe commands when waiting for the un/suback response from the ser...
Definition: MQTTClient.c:2947
int(* Persistence_containskey)(void *handle, char *key)
Returns whether any data has been persisted using the specified key.
Definition: MQTTClientPersistence.h:208
-
int len
binary payload length
Definition: MQTTAsync.h:1030
-
int connectTimeout
The time interval in seconds to allow a connect to complete.
Definition: MQTTClient.h:884
+
int len
binary payload length
Definition: MQTTAsync.h:1044
+
int connectTimeout
The time interval in seconds to allow a connect to complete.
Definition: MQTTClient.h:902
int MQTTPacket_send_pingreq(networkHandles *net, const char *clientID)
Send an MQTT PINGREQ packet down a socket.
Definition: MQTTPacketOut.c:201
void Thread_start(thread_fn fn, void *parameter)
Start a new thread.
Definition: Thread.c:59
struct MQTTAsync_successData5::@4::@8 unsub
For unsubscribeMany, the list of reasonCodes returned by the server.
-
int minRetryInterval
Minimum retry interval in seconds.
Definition: MQTTAsync.h:1314
-
static int clientSockCompare(void *a, void *b)
List callback function for comparing clients by socket.
Definition: MQTTClient.c:670
+
int minRetryInterval
The minimum automatic reconnect retry interval in seconds.
Definition: MQTTAsync.h:1333
+
static int clientSockCompare(void *a, void *b)
List callback function for comparing clients by socket.
Definition: MQTTClient.c:687
void * MQTTPersistence_restorePacket(int MQTTVersion, char *buffer, size_t buflen)
Returns a MQTT packet restored from persisted data.
Definition: MQTTPersistence.c:363
-
void * ssl_psk_context
Application-specific contex for ssl_psk_cb Exists only if struct_version >= 4.
Definition: MQTTClient.h:745
+
void * ssl_psk_context
Application-specific contex for ssl_psk_cb Exists only if struct_version >= 4.
Definition: MQTTClient.h:757
void MQTTProtocol_removePublication(Publications *p)
Remove stored message data.
Definition: MQTTProtocolClient.c:295
List * write_pending
list of sockets for which a write is pending
Definition: Socket.h:115
int HeapDumpString(FILE *file, char *str)
Dump a string from the heap so that it can be displayed conveniently.
Definition: Heap.c:443
-
void * MQTTPacket_publish(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create publish packets.
Definition: MQTTPacket.c:553
-
int len
binary password length
Definition: MQTTClient.h:938
+
void * MQTTPacket_publish(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create publish packets.
Definition: MQTTPacket.c:556
+
int len
binary password length
Definition: MQTTClient.h:956
struct ListElementStruct * next
pointer to next list element
Definition: LinkedList.h:75
bool username
3.1 user name
Definition: MQTTPacket.h:115
struct @34::@35 bytes[4]
up to 4 bytes can be used per character
-
int payloadlen
The length of the MQTT message payload in bytes.
Definition: MQTTAsync.h:274
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:231
-
int MQTTPacket_send_disconnect(Clients *client, enum MQTTReasonCodes reason, MQTTProperties *props)
Send an MQTT disconnect packet down a socket.
Definition: MQTTPacket.c:508
+
int payloadlen
The length of the MQTT message payload in bytes.
Definition: MQTTAsync.h:279
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:236
+
int MQTTPacket_send_disconnect(Clients *client, enum MQTTReasonCodes reason, MQTTProperties *props)
Send an MQTT disconnect packet down a socket.
Definition: MQTTPacket.c:511
int MQTTProtocol_assignMsgId(Clients *client)
Assign a new message id for a client.
Definition: MQTTProtocolClient.c:86
-
int sessionPresent
the session present flag returned from the server
Definition: MQTTAsync.h:624
-
int Socket_new(const char *addr, size_t addr_len, int port, SOCKET *sock)
Create a new socket and TCP connect to an address/port.
Definition: Socket.c:964
+
int sessionPresent
the session present flag returned from the server
Definition: MQTTAsync.h:629
+
int Socket_new(const char *addr, size_t addr_len, int port, SOCKET *sock)
Create a new socket and TCP connect to an address/port.
Definition: Socket.c:1025
MQTTLenString data
The value of a string property, or the name of a user property.
Definition: MQTTProperties.h:103
-
int sessionPresent
the session present flag returned from the server
Definition: MQTTAsync.h:589
-
MQTTAsync_token token
A token identifying the successful request.
Definition: MQTTAsync.h:601
+
int sessionPresent
the session present flag returned from the server
Definition: MQTTAsync.h:594
+
MQTTAsync_token token
A token identifying the successful request.
Definition: MQTTAsync.h:606
void * myrealloc(char *file, int line, void *p, size_t size)
Reallocates a block of memory.
Definition: Heap.c:320
struct MQTTAsync_willOptions::@9 payload
The LWT payload in binary form.
void * content
pointer to element content
Definition: LinkedList.h:76
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1013
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1027
int MQTTPersistence_restorePackets(Clients *c)
Restores the persisted records to the outbound and inbound message queues of the client.
Definition: MQTTPersistence.c:185
-
char * serverURI
the connection string of the server
Definition: MQTTAsync.h:622
-
int MQTTProtocol_handlePubrecs(void *pack, SOCKET sock)
Process an incoming pubrec packet for a socket.
Definition: MQTTProtocolClient.c:476
+
char * serverURI
the connection string of the server
Definition: MQTTAsync.h:627
void myfree(char *file, int line, void *p)
Frees a block of memory.
Definition: Heap.c:277
-
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1193
-
int MQTTPacket_decode(networkHandles *net, size_t *value)
Decodes the message length according to the MQTT algorithm.
Definition: MQTTPacket.c:325
+
int struct_version
The version number of this structure.
Definition: MQTTAsync.h:1212
+
int MQTTPacket_decode(networkHandles *net, size_t *value)
Decodes the message length according to the MQTT algorithm.
Definition: MQTTPacket.c:328
size_t * buflens
array of byte buffers
Definition: Socket.h:103
char * clientID
the string id of the client
Definition: Clients.h:120
The MQTT V5 subscribe options, apart from QoS which existed before V5.
Definition: MQTTSubscribeOpts.h:21
unsigned int MQTTVersion
the version of MQTT
Definition: MQTTPacket.h:154
Definition: MQTTProtocol.h:35
-
MQTTAsync_token token
A token identifying the failed request.
Definition: MQTTAsync.h:549
+
MQTTAsync_token token
A token identifying the failed request.
Definition: MQTTAsync.h:554
struct NodeStruct * parent
pointer to parent tree node, in case we need it
Definition: Tree.h:79
Client publication message data.
Definition: Clients.h:54
-
int struct_version
The version number of this structure.
Definition: MQTTClient.h:541
+
int struct_version
The version number of this structure.
Definition: MQTTClient.h:553
int intcompare(void *a, void *b)
List callback function for comparing integers.
Definition: LinkedList.c:436
unsigned int willQoS
will QoS value
Definition: MQTTPacket.h:112
void * Heap_findItem(void *p)
Utility to find an item in the heap.
Definition: Heap.c:368
int MQTTProtocol_handleSubacks(void *pack, SOCKET sock)
Process an incoming suback packet for a socket.
Definition: MQTTProtocolOut.c:406
-
int * qosList
For subscribeMany, if more than one subscription was requested, the list of granted QoSs of the subsc...
Definition: MQTTAsync.h:577
+
int * qosList
For subscribeMany, if more than one subscription was requested, the list of granted QoSs of the subsc...
Definition: MQTTAsync.h:582
int(* Persistence_remove)(void *handle, char *key)
Remove the data for the specified key from the store.
Definition: MQTTClientPersistence.h:169
diff --git a/docs/MQTTClient_internal/html/Heap_8c.html b/docs/MQTTClient_internal/html/Heap_8c.html index e2864f1ca..a29d15805 100644 --- a/docs/MQTTClient_internal/html/Heap_8c.html +++ b/docs/MQTTClient_internal/html/Heap_8c.html @@ -706,7 +706,7 @@

diff --git a/docs/MQTTClient_internal/html/LinkedList_8c.html b/docs/MQTTClient_internal/html/LinkedList_8c.html index 82add8b7f..d7e5f5ca4 100644 --- a/docs/MQTTClient_internal/html/LinkedList_8c.html +++ b/docs/MQTTClient_internal/html/LinkedList_8c.html @@ -1093,7 +1093,7 @@

diff --git a/docs/MQTTClient_internal/html/Log_8c.html b/docs/MQTTClient_internal/html/Log_8c.html index c929eadd2..9e679bb64 100644 --- a/docs/MQTTClient_internal/html/Log_8c.html +++ b/docs/MQTTClient_internal/html/Log_8c.html @@ -373,7 +373,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTClientPersistence_8h.html b/docs/MQTTClient_internal/html/MQTTClientPersistence_8h.html index bbfa50983..7539ee1be 100644 --- a/docs/MQTTClient_internal/html/MQTTClientPersistence_8h.html +++ b/docs/MQTTClient_internal/html/MQTTClientPersistence_8h.html @@ -403,7 +403,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTClient_8c.html b/docs/MQTTClient_internal/html/MQTTClient_8c.html index e06173cd2..c79fecd77 100644 --- a/docs/MQTTClient_internal/html/MQTTClient_8c.html +++ b/docs/MQTTClient_internal/html/MQTTClient_8c.html @@ -117,9 +117,15 @@ #define URI_SSL   "ssl://"   + +#define URI_MQTTS   "mqtts://" +  #define URI_TCP   "tcp://"   + +#define URI_MQTT   "mqtt://" +  #define URI_WS   "ws://"   @@ -649,7 +655,12 @@

MQTTClient_destroy().

Parameters
- + - - - - - - + + + + + + - - - + + + @@ -462,8 +462,8 @@

-

◆ MQTTProtocol_handlePubacks()

+ +

◆ MQTTProtocol_handlePubacks()

@@ -478,7 +478,13 @@

- + + + + + + + @@ -500,8 +506,8 @@

Here is the call graph for this function:
-
- +
+ @@ -510,8 +516,8 @@

-

◆ MQTTProtocol_handlePubcomps()

+ +

◆ MQTTProtocol_handlePubcomps()

@@ -526,7 +532,13 @@

- + + + + + + + @@ -548,8 +560,8 @@

Here is the call graph for this function:
-
- +
+ @@ -606,8 +618,8 @@

-

◆ MQTTProtocol_handlePubrecs()

+ +

◆ MQTTProtocol_handlePubrecs()

@@ -622,7 +634,13 @@

- + + + + + + + @@ -644,8 +662,8 @@

Here is the call graph for this function:
-
- +
+ @@ -1287,7 +1305,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.map b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.map similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.map rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.map diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.md5 b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.md5 similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.md5 rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.md5 diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.png b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.png similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_af99a635121c0741dc0d8fce990826155_cgraph.png rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a9aa163c85710d4936ae368b8b9412440_cgraph.png diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.map b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.map similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.map rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.map diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.md5 b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.md5 similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.md5 rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.md5 diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.png b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.png similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a8cc3bb2b02699b68e075d2b1107de619_cgraph.png rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_aa9f454819a84c7a43009253fabcea3f3_cgraph.png diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.map b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.map similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.map rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.map diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.md5 b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.md5 similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.md5 rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.md5 diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.png b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.png similarity index 100% rename from docs/MQTTClient_internal/html/MQTTProtocolClient_8c_a01f8d925ee781aa2d0d260a442d39b19_cgraph.png rename to docs/MQTTClient_internal/html/MQTTProtocolClient_8c_ac09429577a185297d8797d791b7116a2_cgraph.png diff --git a/docs/MQTTClient_internal/html/MQTTProtocolOut_8c.html b/docs/MQTTClient_internal/html/MQTTProtocolOut_8c.html index 8bb537c02..2fcb9da86 100644 --- a/docs/MQTTClient_internal/html/MQTTProtocolOut_8c.html +++ b/docs/MQTTClient_internal/html/MQTTProtocolOut_8c.html @@ -641,7 +641,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTVersion_8c.html b/docs/MQTTClient_internal/html/MQTTVersion_8c.html index 1bf1d7bdc..936efa28a 100644 --- a/docs/MQTTClient_internal/html/MQTTVersion_8c.html +++ b/docs/MQTTClient_internal/html/MQTTVersion_8c.html @@ -213,7 +213,7 @@

diff --git a/docs/MQTTClient_internal/html/Messages_8c.html b/docs/MQTTClient_internal/html/Messages_8c.html index 6e541d043..b4210904c 100644 --- a/docs/MQTTClient_internal/html/Messages_8c.html +++ b/docs/MQTTClient_internal/html/Messages_8c.html @@ -197,7 +197,7 @@

diff --git a/docs/MQTTClient_internal/html/SSLSocket_8c.html b/docs/MQTTClient_internal/html/SSLSocket_8c.html index 0ae786b6a..6513b0c84 100644 --- a/docs/MQTTClient_internal/html/SSLSocket_8c.html +++ b/docs/MQTTClient_internal/html/SSLSocket_8c.html @@ -74,7 +74,7 @@

diff --git a/docs/MQTTClient_internal/html/SocketBuffer_8c.html b/docs/MQTTClient_internal/html/SocketBuffer_8c.html index 6bf948f3b..ce3a7b85c 100644 --- a/docs/MQTTClient_internal/html/SocketBuffer_8c.html +++ b/docs/MQTTClient_internal/html/SocketBuffer_8c.html @@ -744,7 +744,7 @@

diff --git a/docs/MQTTClient_internal/html/Socket_8c.html b/docs/MQTTClient_internal/html/Socket_8c.html index ccfd6f2cc..195bf624f 100644 --- a/docs/MQTTClient_internal/html/Socket_8c.html +++ b/docs/MQTTClient_internal/html/Socket_8c.html @@ -178,6 +178,9 @@

+ + @@ -194,6 +197,9 @@ Sockets  + + @@ -1151,7 +1157,7 @@

diff --git a/docs/MQTTClient_internal/html/Thread_8c.html b/docs/MQTTClient_internal/html/Thread_8c.html index bd8d4bd20..e6e6950a9 100644 --- a/docs/MQTTClient_internal/html/Thread_8c.html +++ b/docs/MQTTClient_internal/html/Thread_8c.html @@ -106,6 +106,9 @@

+ + @@ -563,7 +566,7 @@

diff --git a/docs/MQTTClient_internal/html/Tree_8c.html b/docs/MQTTClient_internal/html/Tree_8c.html index 50a519a50..8d22224f2 100644 --- a/docs/MQTTClient_internal/html/Tree_8c.html +++ b/docs/MQTTClient_internal/html/Tree_8c.html @@ -378,7 +378,7 @@

diff --git a/docs/MQTTClient_internal/html/annotated.html b/docs/MQTTClient_internal/html/annotated.html index 729e90add..4b2884084 100644 --- a/docs/MQTTClient_internal/html/annotated.html +++ b/docs/MQTTClient_internal/html/annotated.html @@ -145,7 +145,7 @@ diff --git a/docs/MQTTClient_internal/html/classes.html b/docs/MQTTClient_internal/html/classes.html index 2d9b375e0..f5cb83a0b 100644 --- a/docs/MQTTClient_internal/html/classes.html +++ b/docs/MQTTClient_internal/html/classes.html @@ -193,7 +193,7 @@ diff --git a/docs/MQTTClient_internal/html/files.html b/docs/MQTTClient_internal/html/files.html index ab80d7f97..c49f161a1 100644 --- a/docs/MQTTClient_internal/html/files.html +++ b/docs/MQTTClient_internal/html/files.html @@ -93,7 +93,7 @@ diff --git a/docs/MQTTClient_internal/html/functions.html b/docs/MQTTClient_internal/html/functions.html index 14f181ef5..8ccd25db6 100644 --- a/docs/MQTTClient_internal/html/functions.html +++ b/docs/MQTTClient_internal/html/functions.html @@ -72,7 +72,7 @@

- _ -

    diff --git a/docs/MQTTClient_internal/html/functions_a.html b/docs/MQTTClient_internal/html/functions_a.html index 5ba4233f6..860814398 100644 --- a/docs/MQTTClient_internal/html/functions_a.html +++ b/docs/MQTTClient_internal/html/functions_a.html @@ -95,7 +95,7 @@

    - a -

      diff --git a/docs/MQTTClient_internal/html/functions_b.html b/docs/MQTTClient_internal/html/functions_b.html index 26fec7970..6693854e4 100644 --- a/docs/MQTTClient_internal/html/functions_b.html +++ b/docs/MQTTClient_internal/html/functions_b.html @@ -93,7 +93,7 @@

      - b -

        diff --git a/docs/MQTTClient_internal/html/functions_c.html b/docs/MQTTClient_internal/html/functions_c.html index bf6717424..4cc12374e 100644 --- a/docs/MQTTClient_internal/html/functions_c.html +++ b/docs/MQTTClient_internal/html/functions_c.html @@ -140,7 +140,7 @@

        - c -

          diff --git a/docs/MQTTClient_internal/html/functions_d.html b/docs/MQTTClient_internal/html/functions_d.html index d8c74391e..2428ac71f 100644 --- a/docs/MQTTClient_internal/html/functions_d.html +++ b/docs/MQTTClient_internal/html/functions_d.html @@ -98,7 +98,7 @@

          - d -

            diff --git a/docs/MQTTClient_internal/html/functions_e.html b/docs/MQTTClient_internal/html/functions_e.html index 329d8b5e0..9a9b0bf8f 100644 --- a/docs/MQTTClient_internal/html/functions_e.html +++ b/docs/MQTTClient_internal/html/functions_e.html @@ -77,7 +77,7 @@

            - e -

              diff --git a/docs/MQTTClient_internal/html/functions_f.html b/docs/MQTTClient_internal/html/functions_f.html index 4460c413f..d942fa656 100644 --- a/docs/MQTTClient_internal/html/functions_f.html +++ b/docs/MQTTClient_internal/html/functions_f.html @@ -65,8 +65,8 @@
              Here is a list of all documented struct and union fields with links to the struct/union documentation for each field:

              - f -

                -
              • fds -: Sockets +
              • fds_read +: Sockets
              • file : storageElement @@ -88,7 +88,7 @@

                - f -

                  diff --git a/docs/MQTTClient_internal/html/functions_g.html b/docs/MQTTClient_internal/html/functions_g.html index 74b26c0f7..45c8bc9ae 100644 --- a/docs/MQTTClient_internal/html/functions_g.html +++ b/docs/MQTTClient_internal/html/functions_g.html @@ -72,7 +72,7 @@

                  - g -

                    diff --git a/docs/MQTTClient_internal/html/functions_h.html b/docs/MQTTClient_internal/html/functions_h.html index b8b2be9b3..8e08399fa 100644 --- a/docs/MQTTClient_internal/html/functions_h.html +++ b/docs/MQTTClient_internal/html/functions_h.html @@ -95,7 +95,7 @@

                    - h -

                      diff --git a/docs/MQTTClient_internal/html/functions_i.html b/docs/MQTTClient_internal/html/functions_i.html index f72838b7c..5423524d8 100644 --- a/docs/MQTTClient_internal/html/functions_i.html +++ b/docs/MQTTClient_internal/html/functions_i.html @@ -84,7 +84,7 @@

                      - i -

                        diff --git a/docs/MQTTClient_internal/html/functions_k.html b/docs/MQTTClient_internal/html/functions_k.html index 2b510b20c..a8d3f9530 100644 --- a/docs/MQTTClient_internal/html/functions_k.html +++ b/docs/MQTTClient_internal/html/functions_k.html @@ -81,7 +81,7 @@

                        - k -

                          diff --git a/docs/MQTTClient_internal/html/functions_l.html b/docs/MQTTClient_internal/html/functions_l.html index 5db87fe04..387b37ea5 100644 --- a/docs/MQTTClient_internal/html/functions_l.html +++ b/docs/MQTTClient_internal/html/functions_l.html @@ -88,7 +88,7 @@

                          - l -

                            diff --git a/docs/MQTTClient_internal/html/functions_m.html b/docs/MQTTClient_internal/html/functions_m.html index bf99080e9..9a22e6da3 100644 --- a/docs/MQTTClient_internal/html/functions_m.html +++ b/docs/MQTTClient_internal/html/functions_m.html @@ -139,7 +139,7 @@

                            - m -

                              diff --git a/docs/MQTTClient_internal/html/functions_n.html b/docs/MQTTClient_internal/html/functions_n.html index 69629b853..6d0ffbb96 100644 --- a/docs/MQTTClient_internal/html/functions_n.html +++ b/docs/MQTTClient_internal/html/functions_n.html @@ -87,7 +87,7 @@

                              - n -

                                diff --git a/docs/MQTTClient_internal/html/functions_o.html b/docs/MQTTClient_internal/html/functions_o.html index 09fdac9c4..e31d489aa 100644 --- a/docs/MQTTClient_internal/html/functions_o.html +++ b/docs/MQTTClient_internal/html/functions_o.html @@ -95,7 +95,7 @@

                                - o -

                                  diff --git a/docs/MQTTClient_internal/html/functions_p.html b/docs/MQTTClient_internal/html/functions_p.html index 6b31818f3..b3a914757 100644 --- a/docs/MQTTClient_internal/html/functions_p.html +++ b/docs/MQTTClient_internal/html/functions_p.html @@ -177,7 +177,7 @@

                                  - p -

                                    diff --git a/docs/MQTTClient_internal/html/functions_q.html b/docs/MQTTClient_internal/html/functions_q.html index 1efa615d8..ca6e9a438 100644 --- a/docs/MQTTClient_internal/html/functions_q.html +++ b/docs/MQTTClient_internal/html/functions_q.html @@ -83,7 +83,7 @@

                                    - q -

                                      diff --git a/docs/MQTTClient_internal/html/functions_r.html b/docs/MQTTClient_internal/html/functions_r.html index 15e2c1654..1fc722785 100644 --- a/docs/MQTTClient_internal/html/functions_r.html +++ b/docs/MQTTClient_internal/html/functions_r.html @@ -117,7 +117,7 @@

                                      - r -

                                        diff --git a/docs/MQTTClient_internal/html/functions_s.html b/docs/MQTTClient_internal/html/functions_s.html index e51a8b727..f341a89b4 100644 --- a/docs/MQTTClient_internal/html/functions_s.html +++ b/docs/MQTTClient_internal/html/functions_s.html @@ -167,7 +167,7 @@

                                        - s -

                                          diff --git a/docs/MQTTClient_internal/html/functions_t.html b/docs/MQTTClient_internal/html/functions_t.html index e8ba78be5..a23e80579 100644 --- a/docs/MQTTClient_internal/html/functions_t.html +++ b/docs/MQTTClient_internal/html/functions_t.html @@ -99,7 +99,7 @@

                                          - t -

                                            diff --git a/docs/MQTTClient_internal/html/functions_u.html b/docs/MQTTClient_internal/html/functions_u.html index d2b16d43e..ceddad35a 100644 --- a/docs/MQTTClient_internal/html/functions_u.html +++ b/docs/MQTTClient_internal/html/functions_u.html @@ -79,7 +79,7 @@

                                            - u -

                                              diff --git a/docs/MQTTClient_internal/html/functions_v.html b/docs/MQTTClient_internal/html/functions_v.html index f9600723c..a4f4364ef 100644 --- a/docs/MQTTClient_internal/html/functions_v.html +++ b/docs/MQTTClient_internal/html/functions_v.html @@ -80,7 +80,7 @@

                                              - v -

                                                diff --git a/docs/MQTTClient_internal/html/functions_vars.html b/docs/MQTTClient_internal/html/functions_vars.html index 1d6535c16..2a1903f16 100644 --- a/docs/MQTTClient_internal/html/functions_vars.html +++ b/docs/MQTTClient_internal/html/functions_vars.html @@ -72,7 +72,7 @@

                                                - _ -

                                                  diff --git a/docs/MQTTClient_internal/html/functions_vars_a.html b/docs/MQTTClient_internal/html/functions_vars_a.html index 37fc259e0..0d3630fcc 100644 --- a/docs/MQTTClient_internal/html/functions_vars_a.html +++ b/docs/MQTTClient_internal/html/functions_vars_a.html @@ -95,7 +95,7 @@

                                                  - a -

                                                    diff --git a/docs/MQTTClient_internal/html/functions_vars_b.html b/docs/MQTTClient_internal/html/functions_vars_b.html index da6e7a6a2..026338905 100644 --- a/docs/MQTTClient_internal/html/functions_vars_b.html +++ b/docs/MQTTClient_internal/html/functions_vars_b.html @@ -93,7 +93,7 @@

                                                    - b -

                                                      diff --git a/docs/MQTTClient_internal/html/functions_vars_c.html b/docs/MQTTClient_internal/html/functions_vars_c.html index 3d09f4fa0..95763da8c 100644 --- a/docs/MQTTClient_internal/html/functions_vars_c.html +++ b/docs/MQTTClient_internal/html/functions_vars_c.html @@ -140,7 +140,7 @@

                                                      - c -

                                                        diff --git a/docs/MQTTClient_internal/html/functions_vars_d.html b/docs/MQTTClient_internal/html/functions_vars_d.html index 5a29940db..4656b6afe 100644 --- a/docs/MQTTClient_internal/html/functions_vars_d.html +++ b/docs/MQTTClient_internal/html/functions_vars_d.html @@ -98,7 +98,7 @@

                                                        - d -

                                                          diff --git a/docs/MQTTClient_internal/html/functions_vars_e.html b/docs/MQTTClient_internal/html/functions_vars_e.html index 67d6a7751..eef232ef7 100644 --- a/docs/MQTTClient_internal/html/functions_vars_e.html +++ b/docs/MQTTClient_internal/html/functions_vars_e.html @@ -77,7 +77,7 @@

                                                          - e -

                                                            diff --git a/docs/MQTTClient_internal/html/functions_vars_f.html b/docs/MQTTClient_internal/html/functions_vars_f.html index 6d8acb7c4..4d872a186 100644 --- a/docs/MQTTClient_internal/html/functions_vars_f.html +++ b/docs/MQTTClient_internal/html/functions_vars_f.html @@ -65,8 +65,8 @@  

                                                            - f -

                                                              -
                                                            • fds -: Sockets +
                                                            • fds_read +: Sockets
                                                            • file : storageElement @@ -88,7 +88,7 @@

                                                              - f -

                                                                diff --git a/docs/MQTTClient_internal/html/functions_vars_g.html b/docs/MQTTClient_internal/html/functions_vars_g.html index 127e71bd9..3ffebc010 100644 --- a/docs/MQTTClient_internal/html/functions_vars_g.html +++ b/docs/MQTTClient_internal/html/functions_vars_g.html @@ -72,7 +72,7 @@

                                                                - g -

                                                                  diff --git a/docs/MQTTClient_internal/html/functions_vars_h.html b/docs/MQTTClient_internal/html/functions_vars_h.html index d37ba2839..ae0ea807d 100644 --- a/docs/MQTTClient_internal/html/functions_vars_h.html +++ b/docs/MQTTClient_internal/html/functions_vars_h.html @@ -95,7 +95,7 @@

                                                                  - h -

                                                                    diff --git a/docs/MQTTClient_internal/html/functions_vars_i.html b/docs/MQTTClient_internal/html/functions_vars_i.html index eb315071b..e970d96e1 100644 --- a/docs/MQTTClient_internal/html/functions_vars_i.html +++ b/docs/MQTTClient_internal/html/functions_vars_i.html @@ -84,7 +84,7 @@

                                                                    - i -

                                                                      diff --git a/docs/MQTTClient_internal/html/functions_vars_k.html b/docs/MQTTClient_internal/html/functions_vars_k.html index e3ebba183..229f18449 100644 --- a/docs/MQTTClient_internal/html/functions_vars_k.html +++ b/docs/MQTTClient_internal/html/functions_vars_k.html @@ -81,7 +81,7 @@

                                                                      - k -

                                                                        diff --git a/docs/MQTTClient_internal/html/functions_vars_l.html b/docs/MQTTClient_internal/html/functions_vars_l.html index db6e316e1..3b81bd288 100644 --- a/docs/MQTTClient_internal/html/functions_vars_l.html +++ b/docs/MQTTClient_internal/html/functions_vars_l.html @@ -88,7 +88,7 @@

                                                                        - l -

                                                                          diff --git a/docs/MQTTClient_internal/html/functions_vars_m.html b/docs/MQTTClient_internal/html/functions_vars_m.html index 5c65f54b9..79abab8d1 100644 --- a/docs/MQTTClient_internal/html/functions_vars_m.html +++ b/docs/MQTTClient_internal/html/functions_vars_m.html @@ -139,7 +139,7 @@

                                                                          - m -

                                                                            diff --git a/docs/MQTTClient_internal/html/functions_vars_n.html b/docs/MQTTClient_internal/html/functions_vars_n.html index 4627c61b6..af99b16ab 100644 --- a/docs/MQTTClient_internal/html/functions_vars_n.html +++ b/docs/MQTTClient_internal/html/functions_vars_n.html @@ -87,7 +87,7 @@

                                                                            - n -

                                                                              diff --git a/docs/MQTTClient_internal/html/functions_vars_o.html b/docs/MQTTClient_internal/html/functions_vars_o.html index fdc373ea7..9f370082f 100644 --- a/docs/MQTTClient_internal/html/functions_vars_o.html +++ b/docs/MQTTClient_internal/html/functions_vars_o.html @@ -95,7 +95,7 @@

                                                                              - o -

                                                                                diff --git a/docs/MQTTClient_internal/html/functions_vars_p.html b/docs/MQTTClient_internal/html/functions_vars_p.html index 929d0ad39..5e40ddaca 100644 --- a/docs/MQTTClient_internal/html/functions_vars_p.html +++ b/docs/MQTTClient_internal/html/functions_vars_p.html @@ -177,7 +177,7 @@

                                                                                - p -

                                                                                  diff --git a/docs/MQTTClient_internal/html/functions_vars_q.html b/docs/MQTTClient_internal/html/functions_vars_q.html index 47528ddd7..f4d473f8e 100644 --- a/docs/MQTTClient_internal/html/functions_vars_q.html +++ b/docs/MQTTClient_internal/html/functions_vars_q.html @@ -83,7 +83,7 @@

                                                                                  - q -

                                                                                    diff --git a/docs/MQTTClient_internal/html/functions_vars_r.html b/docs/MQTTClient_internal/html/functions_vars_r.html index af02c9adb..59550d47d 100644 --- a/docs/MQTTClient_internal/html/functions_vars_r.html +++ b/docs/MQTTClient_internal/html/functions_vars_r.html @@ -117,7 +117,7 @@

                                                                                    - r -

                                                                                      diff --git a/docs/MQTTClient_internal/html/functions_vars_s.html b/docs/MQTTClient_internal/html/functions_vars_s.html index cc0265143..7ac15e88e 100644 --- a/docs/MQTTClient_internal/html/functions_vars_s.html +++ b/docs/MQTTClient_internal/html/functions_vars_s.html @@ -167,7 +167,7 @@

                                                                                      - s -

                                                                                        diff --git a/docs/MQTTClient_internal/html/functions_vars_t.html b/docs/MQTTClient_internal/html/functions_vars_t.html index e352f5f20..022169286 100644 --- a/docs/MQTTClient_internal/html/functions_vars_t.html +++ b/docs/MQTTClient_internal/html/functions_vars_t.html @@ -99,7 +99,7 @@

                                                                                        - t -

                                                                                          diff --git a/docs/MQTTClient_internal/html/functions_vars_u.html b/docs/MQTTClient_internal/html/functions_vars_u.html index cee6a1ec6..6c74365b3 100644 --- a/docs/MQTTClient_internal/html/functions_vars_u.html +++ b/docs/MQTTClient_internal/html/functions_vars_u.html @@ -79,7 +79,7 @@

                                                                                          - u -

                                                                                            diff --git a/docs/MQTTClient_internal/html/functions_vars_v.html b/docs/MQTTClient_internal/html/functions_vars_v.html index cb9599ddc..637088c94 100644 --- a/docs/MQTTClient_internal/html/functions_vars_v.html +++ b/docs/MQTTClient_internal/html/functions_vars_v.html @@ -80,7 +80,7 @@

                                                                                            - v -

                                                                                              diff --git a/docs/MQTTClient_internal/html/functions_vars_w.html b/docs/MQTTClient_internal/html/functions_vars_w.html index 55c0fdf3d..ab44e1430 100644 --- a/docs/MQTTClient_internal/html/functions_vars_w.html +++ b/docs/MQTTClient_internal/html/functions_vars_w.html @@ -96,7 +96,7 @@

                                                                                              - w -

                                                                                                diff --git a/docs/MQTTClient_internal/html/functions_w.html b/docs/MQTTClient_internal/html/functions_w.html index 528b9146a..08f468d95 100644 --- a/docs/MQTTClient_internal/html/functions_w.html +++ b/docs/MQTTClient_internal/html/functions_w.html @@ -96,7 +96,7 @@

                                                                                                - w -

                                                                                                  diff --git a/docs/MQTTClient_internal/html/globals.html b/docs/MQTTClient_internal/html/globals.html index 9db7c0bab..3a4bdf269 100644 --- a/docs/MQTTClient_internal/html/globals.html +++ b/docs/MQTTClient_internal/html/globals.html @@ -72,7 +72,7 @@

                                                                                                  - _ -

                                                                                                    diff --git a/docs/MQTTClient_internal/html/globals_a.html b/docs/MQTTClient_internal/html/globals_a.html index c6b01992f..45787e2b8 100644 --- a/docs/MQTTClient_internal/html/globals_a.html +++ b/docs/MQTTClient_internal/html/globals_a.html @@ -72,7 +72,7 @@

                                                                                                    - a -

                                                                                                      diff --git a/docs/MQTTClient_internal/html/globals_b.html b/docs/MQTTClient_internal/html/globals_b.html index 7cc56e8ff..c864658f8 100644 --- a/docs/MQTTClient_internal/html/globals_b.html +++ b/docs/MQTTClient_internal/html/globals_b.html @@ -72,7 +72,7 @@

                                                                                                      - b -

                                                                                                        diff --git a/docs/MQTTClient_internal/html/globals_c.html b/docs/MQTTClient_internal/html/globals_c.html index bb7ec5d0c..0a14095dd 100644 --- a/docs/MQTTClient_internal/html/globals_c.html +++ b/docs/MQTTClient_internal/html/globals_c.html @@ -84,7 +84,7 @@

                                                                                                        - c -

                                                                                                          diff --git a/docs/MQTTClient_internal/html/globals_d.html b/docs/MQTTClient_internal/html/globals_d.html index 3864a07f2..6aae321fc 100644 --- a/docs/MQTTClient_internal/html/globals_d.html +++ b/docs/MQTTClient_internal/html/globals_d.html @@ -72,7 +72,7 @@

                                                                                                          - d -

                                                                                                            diff --git a/docs/MQTTClient_internal/html/globals_defs.html b/docs/MQTTClient_internal/html/globals_defs.html index 13fc3f5e5..f8c051196 100644 --- a/docs/MQTTClient_internal/html/globals_defs.html +++ b/docs/MQTTClient_internal/html/globals_defs.html @@ -85,7 +85,7 @@ diff --git a/docs/MQTTClient_internal/html/globals_f.html b/docs/MQTTClient_internal/html/globals_f.html index 13fea5550..16fec3c82 100644 --- a/docs/MQTTClient_internal/html/globals_f.html +++ b/docs/MQTTClient_internal/html/globals_f.html @@ -72,7 +72,7 @@

                                                                                                            - f -

                                                                                                              diff --git a/docs/MQTTClient_internal/html/globals_func.html b/docs/MQTTClient_internal/html/globals_func.html index 1c0f1a835..41bc02dba 100644 --- a/docs/MQTTClient_internal/html/globals_func.html +++ b/docs/MQTTClient_internal/html/globals_func.html @@ -84,7 +84,7 @@

                                                                                                              - c -

                                                                                                                diff --git a/docs/MQTTClient_internal/html/globals_func_f.html b/docs/MQTTClient_internal/html/globals_func_f.html index e384e3533..6b4ef4354 100644 --- a/docs/MQTTClient_internal/html/globals_func_f.html +++ b/docs/MQTTClient_internal/html/globals_func_f.html @@ -72,7 +72,7 @@

                                                                                                                - f -

                                                                                                                  diff --git a/docs/MQTTClient_internal/html/globals_func_h.html b/docs/MQTTClient_internal/html/globals_func_h.html index 03afba89f..7c6015985 100644 --- a/docs/MQTTClient_internal/html/globals_func_h.html +++ b/docs/MQTTClient_internal/html/globals_func_h.html @@ -96,7 +96,7 @@

                                                                                                                  - h -

                                                                                                                    diff --git a/docs/MQTTClient_internal/html/globals_func_i.html b/docs/MQTTClient_internal/html/globals_func_i.html index ad1ce39a7..4345ba65f 100644 --- a/docs/MQTTClient_internal/html/globals_func_i.html +++ b/docs/MQTTClient_internal/html/globals_func_i.html @@ -78,7 +78,7 @@

                                                                                                                    - i -

                                                                                                                      diff --git a/docs/MQTTClient_internal/html/globals_func_l.html b/docs/MQTTClient_internal/html/globals_func_l.html index 20e3755be..389a6c76b 100644 --- a/docs/MQTTClient_internal/html/globals_func_l.html +++ b/docs/MQTTClient_internal/html/globals_func_l.html @@ -135,7 +135,7 @@

                                                                                                                      - l -

                                                                                                                        diff --git a/docs/MQTTClient_internal/html/globals_func_m.html b/docs/MQTTClient_internal/html/globals_func_m.html index 7585b6b55..0ebe5a4bb 100644 --- a/docs/MQTTClient_internal/html/globals_func_m.html +++ b/docs/MQTTClient_internal/html/globals_func_m.html @@ -333,16 +333,16 @@

                                                                                                                        - m -

                                                                                                                          : MQTTProtocolOut.c
                                                                                                                        • MQTTProtocol_handlePubacks() -: MQTTProtocolClient.c +: MQTTProtocolClient.c
                                                                                                                        • MQTTProtocol_handlePubcomps() -: MQTTProtocolClient.c +: MQTTProtocolClient.c
                                                                                                                        • MQTTProtocol_handlePublishes() : MQTTProtocolClient.c
                                                                                                                        • MQTTProtocol_handlePubrecs() -: MQTTProtocolClient.c +: MQTTProtocolClient.c
                                                                                                                        • MQTTProtocol_handlePubrels() : MQTTProtocolClient.c @@ -411,7 +411,7 @@

                                                                                                                          - m -

                                                                                                                            diff --git a/docs/MQTTClient_internal/html/globals_func_p.html b/docs/MQTTClient_internal/html/globals_func_p.html index 25ca08fee..e7db4923a 100644 --- a/docs/MQTTClient_internal/html/globals_func_p.html +++ b/docs/MQTTClient_internal/html/globals_func_p.html @@ -102,7 +102,7 @@

                                                                                                                            - p -

                                                                                                                              diff --git a/docs/MQTTClient_internal/html/globals_func_r.html b/docs/MQTTClient_internal/html/globals_func_r.html index 3c956e8c3..c794fe29e 100644 --- a/docs/MQTTClient_internal/html/globals_func_r.html +++ b/docs/MQTTClient_internal/html/globals_func_r.html @@ -84,7 +84,7 @@

                                                                                                                              - r -

                                                                                                                                diff --git a/docs/MQTTClient_internal/html/globals_func_s.html b/docs/MQTTClient_internal/html/globals_func_s.html index 69d144029..8a8d6b230 100644 --- a/docs/MQTTClient_internal/html/globals_func_s.html +++ b/docs/MQTTClient_internal/html/globals_func_s.html @@ -180,7 +180,7 @@

                                                                                                                                - s -

                                                                                                                                  diff --git a/docs/MQTTClient_internal/html/globals_func_t.html b/docs/MQTTClient_internal/html/globals_func_t.html index 2f35f8b03..3ed01f16a 100644 --- a/docs/MQTTClient_internal/html/globals_func_t.html +++ b/docs/MQTTClient_internal/html/globals_func_t.html @@ -126,7 +126,7 @@

                                                                                                                                  - t -

                                                                                                                                    diff --git a/docs/MQTTClient_internal/html/globals_func_u.html b/docs/MQTTClient_internal/html/globals_func_u.html index 375c7c648..838521dd1 100644 --- a/docs/MQTTClient_internal/html/globals_func_u.html +++ b/docs/MQTTClient_internal/html/globals_func_u.html @@ -78,7 +78,7 @@

                                                                                                                                    - u -

                                                                                                                                      diff --git a/docs/MQTTClient_internal/html/globals_func_w.html b/docs/MQTTClient_internal/html/globals_func_w.html index da653cd4d..d9294e892 100644 --- a/docs/MQTTClient_internal/html/globals_func_w.html +++ b/docs/MQTTClient_internal/html/globals_func_w.html @@ -84,7 +84,7 @@

                                                                                                                                      - w -

                                                                                                                                        diff --git a/docs/MQTTClient_internal/html/globals_h.html b/docs/MQTTClient_internal/html/globals_h.html index f926a92f1..a75aad288 100644 --- a/docs/MQTTClient_internal/html/globals_h.html +++ b/docs/MQTTClient_internal/html/globals_h.html @@ -99,7 +99,7 @@

                                                                                                                                        - h -

                                                                                                                                          diff --git a/docs/MQTTClient_internal/html/globals_i.html b/docs/MQTTClient_internal/html/globals_i.html index 5bfbfc278..a5e2aa4a3 100644 --- a/docs/MQTTClient_internal/html/globals_i.html +++ b/docs/MQTTClient_internal/html/globals_i.html @@ -78,7 +78,7 @@

                                                                                                                                          - i -

                                                                                                                                            diff --git a/docs/MQTTClient_internal/html/globals_l.html b/docs/MQTTClient_internal/html/globals_l.html index 4879d47ff..f87a3f105 100644 --- a/docs/MQTTClient_internal/html/globals_l.html +++ b/docs/MQTTClient_internal/html/globals_l.html @@ -144,7 +144,7 @@

                                                                                                                                            - l -

                                                                                                                                              diff --git a/docs/MQTTClient_internal/html/globals_m.html b/docs/MQTTClient_internal/html/globals_m.html index f1f41f077..f93403f5d 100644 --- a/docs/MQTTClient_internal/html/globals_m.html +++ b/docs/MQTTClient_internal/html/globals_m.html @@ -357,16 +357,16 @@

                                                                                                                                              - m -

                                                                                                                                                : MQTTProtocolOut.c
                                                                                                                                              • MQTTProtocol_handlePubacks() -: MQTTProtocolClient.c +: MQTTProtocolClient.c
                                                                                                                                              • MQTTProtocol_handlePubcomps() -: MQTTProtocolClient.c +: MQTTProtocolClient.c
                                                                                                                                              • MQTTProtocol_handlePublishes() : MQTTProtocolClient.c
                                                                                                                                              • MQTTProtocol_handlePubrecs() -: MQTTProtocolClient.c +: MQTTProtocolClient.c
                                                                                                                                              • MQTTProtocol_handlePubrels() : MQTTProtocolClient.c @@ -435,7 +435,7 @@

                                                                                                                                                - m -

                                                                                                                                                  diff --git a/docs/MQTTClient_internal/html/globals_n.html b/docs/MQTTClient_internal/html/globals_n.html index f59e9ec3a..dacc7e64a 100644 --- a/docs/MQTTClient_internal/html/globals_n.html +++ b/docs/MQTTClient_internal/html/globals_n.html @@ -72,7 +72,7 @@

                                                                                                                                                  - n -

                                                                                                                                                    diff --git a/docs/MQTTClient_internal/html/globals_p.html b/docs/MQTTClient_internal/html/globals_p.html index 2ccded1f9..8720bb1c1 100644 --- a/docs/MQTTClient_internal/html/globals_p.html +++ b/docs/MQTTClient_internal/html/globals_p.html @@ -129,7 +129,7 @@

                                                                                                                                                    - p -

                                                                                                                                                      diff --git a/docs/MQTTClient_internal/html/globals_q.html b/docs/MQTTClient_internal/html/globals_q.html index f96fac2f6..1447ab3f3 100644 --- a/docs/MQTTClient_internal/html/globals_q.html +++ b/docs/MQTTClient_internal/html/globals_q.html @@ -72,7 +72,7 @@

                                                                                                                                                      - q -

                                                                                                                                                        diff --git a/docs/MQTTClient_internal/html/globals_r.html b/docs/MQTTClient_internal/html/globals_r.html index 7c9910906..2b241f313 100644 --- a/docs/MQTTClient_internal/html/globals_r.html +++ b/docs/MQTTClient_internal/html/globals_r.html @@ -84,7 +84,7 @@

                                                                                                                                                        - r -

                                                                                                                                                          diff --git a/docs/MQTTClient_internal/html/globals_s.html b/docs/MQTTClient_internal/html/globals_s.html index 02cb74dd6..05756e8bb 100644 --- a/docs/MQTTClient_internal/html/globals_s.html +++ b/docs/MQTTClient_internal/html/globals_s.html @@ -183,7 +183,7 @@

                                                                                                                                                          - s -

                                                                                                                                                            diff --git a/docs/MQTTClient_internal/html/globals_t.html b/docs/MQTTClient_internal/html/globals_t.html index 86ad1c485..b307c23ee 100644 --- a/docs/MQTTClient_internal/html/globals_t.html +++ b/docs/MQTTClient_internal/html/globals_t.html @@ -135,7 +135,7 @@

                                                                                                                                                            - t -

                                                                                                                                                              diff --git a/docs/MQTTClient_internal/html/globals_type.html b/docs/MQTTClient_internal/html/globals_type.html index 4f620db8a..784ac4a87 100644 --- a/docs/MQTTClient_internal/html/globals_type.html +++ b/docs/MQTTClient_internal/html/globals_type.html @@ -97,7 +97,7 @@ diff --git a/docs/MQTTClient_internal/html/globals_u.html b/docs/MQTTClient_internal/html/globals_u.html index ca5a0220f..6a6d9ebd2 100644 --- a/docs/MQTTClient_internal/html/globals_u.html +++ b/docs/MQTTClient_internal/html/globals_u.html @@ -81,7 +81,7 @@

                                                                                                                                                              - u -

                                                                                                                                                                diff --git a/docs/MQTTClient_internal/html/globals_v.html b/docs/MQTTClient_internal/html/globals_v.html index d40f60cbf..b405b3893 100644 --- a/docs/MQTTClient_internal/html/globals_v.html +++ b/docs/MQTTClient_internal/html/globals_v.html @@ -72,7 +72,7 @@

                                                                                                                                                                - v -

                                                                                                                                                                  diff --git a/docs/MQTTClient_internal/html/globals_vars.html b/docs/MQTTClient_internal/html/globals_vars.html index a7f60d7d1..273f68bee 100644 --- a/docs/MQTTClient_internal/html/globals_vars.html +++ b/docs/MQTTClient_internal/html/globals_vars.html @@ -121,7 +121,7 @@ diff --git a/docs/MQTTClient_internal/html/globals_w.html b/docs/MQTTClient_internal/html/globals_w.html index 83e9a6229..bfc3d001f 100644 --- a/docs/MQTTClient_internal/html/globals_w.html +++ b/docs/MQTTClient_internal/html/globals_w.html @@ -87,7 +87,7 @@

                                                                                                                                                                  - w -

                                                                                                                                                                    diff --git a/docs/MQTTClient_internal/html/graph_legend.html b/docs/MQTTClient_internal/html/graph_legend.html index fe77bc3a9..9dbdcc85c 100644 --- a/docs/MQTTClient_internal/html/graph_legend.html +++ b/docs/MQTTClient_internal/html/graph_legend.html @@ -129,7 +129,7 @@ diff --git a/docs/MQTTClient_internal/html/index.html b/docs/MQTTClient_internal/html/index.html index f1527e0fe..a7b629685 100644 --- a/docs/MQTTClient_internal/html/index.html +++ b/docs/MQTTClient_internal/html/index.html @@ -74,7 +74,7 @@ diff --git a/docs/MQTTClient_internal/html/search/all_6.js b/docs/MQTTClient_internal/html/search/all_6.js index c1def0453..cc5caaf31 100644 --- a/docs/MQTTClient_internal/html/search/all_6.js +++ b/docs/MQTTClient_internal/html/search/all_6.js @@ -1,6 +1,6 @@ var searchData= [ - ['fds_60',['fds',['../structSockets.html#a3fe5e78a30e7b599273bbdc92904e3a9',1,'Sockets']]], + ['fds_5fread_60',['fds_read',['../structSockets.html#a9e91e6577708542a4aab9c43976f7923',1,'Sockets']]], ['file_61',['file',['../structstorageElement.html#aa13f42ed8f43459d289dec1bc4e259dd',1,'storageElement']]], ['findstring_62',['FindString',['../MQTTVersion_8c.html#a60231c316988ddb6d3ecf20a3195fe8d',1,'MQTTVersion.c']]], ['first_63',['first',['../structList.html#ab6dd52dbb617d263723015ef055caffe',1,'List']]], diff --git a/docs/MQTTClient_internal/html/search/all_c.js b/docs/MQTTClient_internal/html/search/all_c.js index 3c944f444..d854f5825 100644 --- a/docs/MQTTClient_internal/html/search/all_c.js +++ b/docs/MQTTClient_internal/html/search/all_c.js @@ -150,10 +150,10 @@ var searchData= ['mqttprotocol_5ffreemessagelist_277',['MQTTProtocol_freeMessageList',['../MQTTProtocolClient_8c.html#a8514ddc8d0f346c0da19ab4d59b4062f',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandledisconnects_278',['MQTTProtocol_handleDisconnects',['../MQTTProtocolOut_8c.html#a4f914518a8e2d68cc9d9fbb2c22cdf6f',1,'MQTTProtocolOut.c']]], ['mqttprotocol_5fhandlepingresps_279',['MQTTProtocol_handlePingresps',['../MQTTProtocolOut_8c.html#ad298c92c74b5f1acda774fc95e3d61c3',1,'MQTTProtocolOut.c']]], - ['mqttprotocol_5fhandlepubacks_280',['MQTTProtocol_handlePubacks',['../MQTTProtocolClient_8c.html#a8cc3bb2b02699b68e075d2b1107de619',1,'MQTTProtocolClient.c']]], - ['mqttprotocol_5fhandlepubcomps_281',['MQTTProtocol_handlePubcomps',['../MQTTProtocolClient_8c.html#af99a635121c0741dc0d8fce990826155',1,'MQTTProtocolClient.c']]], + ['mqttprotocol_5fhandlepubacks_280',['MQTTProtocol_handlePubacks',['../MQTTProtocolClient_8c.html#aa9f454819a84c7a43009253fabcea3f3',1,'MQTTProtocolClient.c']]], + ['mqttprotocol_5fhandlepubcomps_281',['MQTTProtocol_handlePubcomps',['../MQTTProtocolClient_8c.html#a9aa163c85710d4936ae368b8b9412440',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandlepublishes_282',['MQTTProtocol_handlePublishes',['../MQTTProtocolClient_8c.html#a2d7897d575be486bf1ed0459d7b2b8e7',1,'MQTTProtocolClient.c']]], - ['mqttprotocol_5fhandlepubrecs_283',['MQTTProtocol_handlePubrecs',['../MQTTProtocolClient_8c.html#a01f8d925ee781aa2d0d260a442d39b19',1,'MQTTProtocolClient.c']]], + ['mqttprotocol_5fhandlepubrecs_283',['MQTTProtocol_handlePubrecs',['../MQTTProtocolClient_8c.html#ac09429577a185297d8797d791b7116a2',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandlepubrels_284',['MQTTProtocol_handlePubrels',['../MQTTProtocolClient_8c.html#a362e0560d6f4f0e50237664a1a8e89a7',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandlesubacks_285',['MQTTProtocol_handleSubacks',['../MQTTProtocolOut_8c.html#a5424115bf427436c2d40058f15261ed0',1,'MQTTProtocolOut.c']]], ['mqttprotocol_5fhandleunsubacks_286',['MQTTProtocol_handleUnsubacks',['../MQTTProtocolOut_8c.html#a0b9648549a1a132eecadb74df2e84f57',1,'MQTTProtocolOut.c']]], @@ -178,7 +178,7 @@ var searchData= ['mqttsubscribe_5foptions_305',['MQTTSubscribe_options',['../structMQTTSubscribe__options.html',1,'']]], ['mqttversion_306',['MQTTVersion',['../structClients.html#a9cb1ad103af7c3aaf00e79037e6befba',1,'Clients::MQTTVersion()'],['../structMQTTAsync__successData.html#a2803f7c3e77845d14d7d54004b6c16f9',1,'MQTTAsync_successData::MQTTVersion()'],['../structMQTTAsync__successData5.html#a2a1956f782970dfdc24bb521bd90452b',1,'MQTTAsync_successData5::MQTTVersion()'],['../structMQTTAsync__createOptions.html#a538f8ca0715d75b79be91e8050a44402',1,'MQTTAsync_createOptions::MQTTVersion()'],['../structMQTTAsync__connectOptions.html#a03bb9a21cbbd0f9a2258204c1890ca40',1,'MQTTAsync_connectOptions::MQTTVersion()'],['../structMQTTAsync__command.html#aab15c3354653ca0d03644bcaa98f77fb',1,'MQTTAsync_command::MQTTVersion()'],['../structMQTTClient__createOptions.html#ae15c5b3e67be5967deb87d2830805565',1,'MQTTClient_createOptions::MQTTVersion()'],['../structMQTTClient__connectOptions.html#ac5990907e10165a71e6b3c163f2f1eef',1,'MQTTClient_connectOptions::MQTTVersion()'],['../structConnack.html#af1a10784220b77ccfbf549b2443f2332',1,'Connack::MQTTVersion()'],['../structSuback.html#aec7bfa50ec92509a7d7f9466173a064e',1,'Suback::MQTTVersion()'],['../structUnsuback.html#a25413381d1f688248d64a82e67746108',1,'Unsuback::MQTTVersion()'],['../structPublish.html#a5e5bc5c8445b9f8bdbc02315f91921a0',1,'Publish::MQTTVersion()'],['../structAck.html#a542acd6ed107a1dfffd225b668c0d961',1,'Ack::MQTTVersion()']]], ['mqttversion_2ec_307',['MQTTVersion.c',['../MQTTVersion_8c.html',1,'']]], - ['msgid_308',['msgId',['../structSuback.html#acb5971c2ca02372e41da6f1ccf202dba',1,'Suback::msgId()'],['../structUnsuback.html#a804d221a84b2306cb6040f405315abc3',1,'Unsuback::msgId()'],['../structPublish.html#ac1076c8b1dc5793c498f098f0a0d78cd',1,'Publish::msgId()'],['../structAck.html#aacfdbab79ac27e1a5ff80bccac4427a9',1,'Ack::msgId()'],['../structClients.html#ad0aaa6d9fce1f8196ff859df00716055',1,'Clients::msgID()'],['../structMQTTAsync__message.html#a2c8572ec595842768848982321835bfe',1,'MQTTAsync_message::msgid()'],['../structMQTTClient__message.html#a3be81df63644606036c0a139564a1d92',1,'MQTTClient_message::msgid()']]], + ['msgid_308',['msgID',['../structClients.html#ad0aaa6d9fce1f8196ff859df00716055',1,'Clients::msgID()'],['../structMQTTAsync__message.html#a2c8572ec595842768848982321835bfe',1,'MQTTAsync_message::msgid()'],['../structMQTTClient__message.html#a3be81df63644606036c0a139564a1d92',1,'MQTTClient_message::msgid()'],['../structSuback.html#acb5971c2ca02372e41da6f1ccf202dba',1,'Suback::msgId()'],['../structUnsuback.html#a804d221a84b2306cb6040f405315abc3',1,'Unsuback::msgId()'],['../structPublish.html#ac1076c8b1dc5793c498f098f0a0d78cd',1,'Publish::msgId()'],['../structAck.html#aacfdbab79ac27e1a5ff80bccac4427a9',1,'Ack::msgId()']]], ['myfree_309',['myfree',['../Heap_8c.html#a25214c297c998eba3cfc8282b1162c69',1,'Heap.c']]], ['mymalloc_310',['mymalloc',['../Heap_8c.html#a59e53a989d69c3da767487596d9bfa1f',1,'Heap.c']]], ['myrealloc_311',['myrealloc',['../Heap_8c.html#a699e6722cc8f195f853f09ac274413a3',1,'Heap.c']]] diff --git a/docs/MQTTClient_internal/html/search/functions_5.js b/docs/MQTTClient_internal/html/search/functions_5.js index 885b6c149..173f1fb8f 100644 --- a/docs/MQTTClient_internal/html/search/functions_5.js +++ b/docs/MQTTClient_internal/html/search/functions_5.js @@ -89,10 +89,10 @@ var searchData= ['mqttprotocol_5ffreemessagelist_750',['MQTTProtocol_freeMessageList',['../MQTTProtocolClient_8c.html#a8514ddc8d0f346c0da19ab4d59b4062f',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandledisconnects_751',['MQTTProtocol_handleDisconnects',['../MQTTProtocolOut_8c.html#a4f914518a8e2d68cc9d9fbb2c22cdf6f',1,'MQTTProtocolOut.c']]], ['mqttprotocol_5fhandlepingresps_752',['MQTTProtocol_handlePingresps',['../MQTTProtocolOut_8c.html#ad298c92c74b5f1acda774fc95e3d61c3',1,'MQTTProtocolOut.c']]], - ['mqttprotocol_5fhandlepubacks_753',['MQTTProtocol_handlePubacks',['../MQTTProtocolClient_8c.html#a8cc3bb2b02699b68e075d2b1107de619',1,'MQTTProtocolClient.c']]], - ['mqttprotocol_5fhandlepubcomps_754',['MQTTProtocol_handlePubcomps',['../MQTTProtocolClient_8c.html#af99a635121c0741dc0d8fce990826155',1,'MQTTProtocolClient.c']]], + ['mqttprotocol_5fhandlepubacks_753',['MQTTProtocol_handlePubacks',['../MQTTProtocolClient_8c.html#aa9f454819a84c7a43009253fabcea3f3',1,'MQTTProtocolClient.c']]], + ['mqttprotocol_5fhandlepubcomps_754',['MQTTProtocol_handlePubcomps',['../MQTTProtocolClient_8c.html#a9aa163c85710d4936ae368b8b9412440',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandlepublishes_755',['MQTTProtocol_handlePublishes',['../MQTTProtocolClient_8c.html#a2d7897d575be486bf1ed0459d7b2b8e7',1,'MQTTProtocolClient.c']]], - ['mqttprotocol_5fhandlepubrecs_756',['MQTTProtocol_handlePubrecs',['../MQTTProtocolClient_8c.html#a01f8d925ee781aa2d0d260a442d39b19',1,'MQTTProtocolClient.c']]], + ['mqttprotocol_5fhandlepubrecs_756',['MQTTProtocol_handlePubrecs',['../MQTTProtocolClient_8c.html#ac09429577a185297d8797d791b7116a2',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandlepubrels_757',['MQTTProtocol_handlePubrels',['../MQTTProtocolClient_8c.html#a362e0560d6f4f0e50237664a1a8e89a7',1,'MQTTProtocolClient.c']]], ['mqttprotocol_5fhandlesubacks_758',['MQTTProtocol_handleSubacks',['../MQTTProtocolOut_8c.html#a5424115bf427436c2d40058f15261ed0',1,'MQTTProtocolOut.c']]], ['mqttprotocol_5fhandleunsubacks_759',['MQTTProtocol_handleUnsubacks',['../MQTTProtocolOut_8c.html#a0b9648549a1a132eecadb74df2e84f57',1,'MQTTProtocolOut.c']]], diff --git a/docs/MQTTClient_internal/html/search/variables_6.js b/docs/MQTTClient_internal/html/search/variables_6.js index 3bf7db441..04900090c 100644 --- a/docs/MQTTClient_internal/html/search/variables_6.js +++ b/docs/MQTTClient_internal/html/search/variables_6.js @@ -1,6 +1,6 @@ var searchData= [ - ['fds_903',['fds',['../structSockets.html#a3fe5e78a30e7b599273bbdc92904e3a9',1,'Sockets']]], + ['fds_5fread_903',['fds_read',['../structSockets.html#a9e91e6577708542a4aab9c43976f7923',1,'Sockets']]], ['file_904',['file',['../structstorageElement.html#aa13f42ed8f43459d289dec1bc4e259dd',1,'storageElement']]], ['first_905',['first',['../structList.html#ab6dd52dbb617d263723015ef055caffe',1,'List']]], ['fixed_5fheader_906',['fixed_header',['../structsocket__queue.html#a8cc2b561b0b418fbbcc7ede680c71169',1,'socket_queue']]], diff --git a/docs/MQTTClient_internal/html/search/variables_c.js b/docs/MQTTClient_internal/html/search/variables_c.js index 45a9a9be0..28e444abe 100644 --- a/docs/MQTTClient_internal/html/search/variables_c.js +++ b/docs/MQTTClient_internal/html/search/variables_c.js @@ -14,5 +14,5 @@ var searchData= ['minretryinterval_941',['minRetryInterval',['../structMQTTAsync__connectOptions.html#a60bb7a0c6afaaff456f7fa4f18c84b66',1,'MQTTAsync_connectOptions']]], ['mod_5fs_942',['mod_s',['../Socket_8c.html#a6caeed4a8d4f884c57a815034cee275e',1,'Socket.c']]], ['mqttversion_943',['MQTTVersion',['../structClients.html#a9cb1ad103af7c3aaf00e79037e6befba',1,'Clients::MQTTVersion()'],['../structMQTTAsync__successData.html#a2803f7c3e77845d14d7d54004b6c16f9',1,'MQTTAsync_successData::MQTTVersion()'],['../structMQTTAsync__successData5.html#a2a1956f782970dfdc24bb521bd90452b',1,'MQTTAsync_successData5::MQTTVersion()'],['../structMQTTAsync__createOptions.html#a538f8ca0715d75b79be91e8050a44402',1,'MQTTAsync_createOptions::MQTTVersion()'],['../structMQTTAsync__connectOptions.html#a03bb9a21cbbd0f9a2258204c1890ca40',1,'MQTTAsync_connectOptions::MQTTVersion()'],['../structMQTTAsync__command.html#aab15c3354653ca0d03644bcaa98f77fb',1,'MQTTAsync_command::MQTTVersion()'],['../structMQTTClient__createOptions.html#ae15c5b3e67be5967deb87d2830805565',1,'MQTTClient_createOptions::MQTTVersion()'],['../structMQTTClient__connectOptions.html#ac5990907e10165a71e6b3c163f2f1eef',1,'MQTTClient_connectOptions::MQTTVersion()'],['../structConnack.html#af1a10784220b77ccfbf549b2443f2332',1,'Connack::MQTTVersion()'],['../structSuback.html#aec7bfa50ec92509a7d7f9466173a064e',1,'Suback::MQTTVersion()'],['../structUnsuback.html#a25413381d1f688248d64a82e67746108',1,'Unsuback::MQTTVersion()'],['../structPublish.html#a5e5bc5c8445b9f8bdbc02315f91921a0',1,'Publish::MQTTVersion()'],['../structAck.html#a542acd6ed107a1dfffd225b668c0d961',1,'Ack::MQTTVersion()']]], - ['msgid_944',['msgId',['../structSuback.html#acb5971c2ca02372e41da6f1ccf202dba',1,'Suback::msgId()'],['../structUnsuback.html#a804d221a84b2306cb6040f405315abc3',1,'Unsuback::msgId()'],['../structPublish.html#ac1076c8b1dc5793c498f098f0a0d78cd',1,'Publish::msgId()'],['../structAck.html#aacfdbab79ac27e1a5ff80bccac4427a9',1,'Ack::msgId()'],['../structClients.html#ad0aaa6d9fce1f8196ff859df00716055',1,'Clients::msgID()'],['../structMQTTAsync__message.html#a2c8572ec595842768848982321835bfe',1,'MQTTAsync_message::msgid()'],['../structMQTTClient__message.html#a3be81df63644606036c0a139564a1d92',1,'MQTTClient_message::msgid()']]] + ['msgid_944',['msgID',['../structClients.html#ad0aaa6d9fce1f8196ff859df00716055',1,'Clients::msgID()'],['../structMQTTAsync__message.html#a2c8572ec595842768848982321835bfe',1,'MQTTAsync_message::msgid()'],['../structMQTTClient__message.html#a3be81df63644606036c0a139564a1d92',1,'MQTTClient_message::msgid()'],['../structSuback.html#acb5971c2ca02372e41da6f1ccf202dba',1,'Suback::msgId()'],['../structUnsuback.html#a804d221a84b2306cb6040f405315abc3',1,'Unsuback::msgId()'],['../structPublish.html#ac1076c8b1dc5793c498f098f0a0d78cd',1,'Publish::msgId()'],['../structAck.html#aacfdbab79ac27e1a5ff80bccac4427a9',1,'Ack::msgId()']]] ]; diff --git a/docs/MQTTClient_internal/html/structAck.html b/docs/MQTTClient_internal/html/structAck.html index 04b2d6246..c50eaf805 100644 --- a/docs/MQTTClient_internal/html/structAck.html +++ b/docs/MQTTClient_internal/html/structAck.html @@ -134,7 +134,7 @@

                                                                                                                                                                    diff --git a/docs/MQTTClient_internal/html/structAckRequest.html b/docs/MQTTClient_internal/html/structAckRequest.html index 9d23002bf..a17c586a0 100644 --- a/docs/MQTTClient_internal/html/structAckRequest.html +++ b/docs/MQTTClient_internal/html/structAckRequest.html @@ -84,7 +84,7 @@ diff --git a/docs/MQTTClient_internal/html/structClientStates.html b/docs/MQTTClient_internal/html/structClientStates.html index 74682dd82..2a7cb1541 100644 --- a/docs/MQTTClient_internal/html/structClientStates.html +++ b/docs/MQTTClient_internal/html/structClientStates.html @@ -101,7 +101,7 @@ diff --git a/docs/MQTTClient_internal/html/structClients.html b/docs/MQTTClient_internal/html/structClients.html index 7c7184eb5..9940d52b2 100644 --- a/docs/MQTTClient_internal/html/structClients.html +++ b/docs/MQTTClient_internal/html/structClients.html @@ -240,7 +240,7 @@ diff --git a/docs/MQTTClient_internal/html/structConnack.html b/docs/MQTTClient_internal/html/structConnack.html index 3e2e10f09..7719e4bfe 100644 --- a/docs/MQTTClient_internal/html/structConnack.html +++ b/docs/MQTTClient_internal/html/structConnack.html @@ -151,7 +151,7 @@

                                                                                                                                                                    diff --git a/docs/MQTTClient_internal/html/structConnect.html b/docs/MQTTClient_internal/html/structConnect.html index 10b7d405f..425d09450 100644 --- a/docs/MQTTClient_internal/html/structConnect.html +++ b/docs/MQTTClient_internal/html/structConnect.html @@ -163,7 +163,7 @@ diff --git a/docs/MQTTClient_internal/html/structList.html b/docs/MQTTClient_internal/html/structList.html index 051bb31dc..e18575601 100644 --- a/docs/MQTTClient_internal/html/structList.html +++ b/docs/MQTTClient_internal/html/structList.html @@ -114,7 +114,7 @@ diff --git a/docs/MQTTClient_internal/html/structListElementStruct.html b/docs/MQTTClient_internal/html/structListElementStruct.html index 659f6c81b..03031d861 100644 --- a/docs/MQTTClient_internal/html/structListElementStruct.html +++ b/docs/MQTTClient_internal/html/structListElementStruct.html @@ -105,7 +105,7 @@ diff --git a/docs/MQTTClient_internal/html/structLog__nameValue.html b/docs/MQTTClient_internal/html/structLog__nameValue.html index 84e358b31..861660f85 100644 --- a/docs/MQTTClient_internal/html/structLog__nameValue.html +++ b/docs/MQTTClient_internal/html/structLog__nameValue.html @@ -84,7 +84,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__SSLOptions.html b/docs/MQTTClient_internal/html/structMQTTAsync__SSLOptions.html index 35342389a..1201c1ef0 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__SSLOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__SSLOptions.html @@ -323,7 +323,7 @@

                                                                                                                                                                    diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__command.html b/docs/MQTTClient_internal/html/structMQTTAsync__command.html index 77096a212..4a1d0f80b 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__command.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__command.html @@ -193,7 +193,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__connectData.html b/docs/MQTTClient_internal/html/structMQTTAsync__connectData.html index dd1829273..10c21d107 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__connectData.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__connectData.html @@ -175,7 +175,7 @@

                                                                                                                                                                    diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__connectOptions.html b/docs/MQTTClient_internal/html/structMQTTAsync__connectOptions.html index 675d832f4..ef8f61e8f 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__connectOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__connectOptions.html @@ -142,15 +142,14 @@

- - + + - + - +
handleA pointer to an ::MQTTClient handle. The handle is populated with a valid client reference following a successful return from this function.
serverURIA null-terminated string specifying the server to which the client will connect. It takes the form protocol://host:port. Currently, protocol must be tcp, ssl, ws or wss. The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with. For host, you can specify either an IP address or a host name. For instance, to connect to a server running on the local machines with the default MQTT port, specify tcp://localhost:1883.
serverURIA null-terminated string specifying the server to which the client will connect. It takes the form protocol://host:port. Currently, protocol must be:
+ tcp:// or mqtt:// - Insecure TCP
+ ssl:// or mqtts:// - Encrypted SSL/TLS
+ ws:// - Insecure websockets
+ wss:// - Secure web sockets
+ The TLS enabled prefixes (ssl, mqtts, wss) are only valid if a TLS version of the library is linked with. For host, you can specify either an IP address or a host name. For instance, to connect to a server running on the local machines with the default MQTT port, specify tcp://localhost:1883.
clientIdThe client identifier passed to the server when the client connects to it. It is a null-terminated UTF-8 encoded string.
persistence_typeThe type of persistence to be used by the client:
MQTTCLIENT_PERSISTENCE_NONE: Use in-memory persistence. If the device or system on which the client is running fails or is switched off, the current state of any in-flight messages is lost and some messages may not be delivered even at QoS1 and QoS2.
@@ -2268,7 +2279,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTPacketOut_8c.html b/docs/MQTTClient_internal/html/MQTTPacketOut_8c.html index efd5ff011..d4652448e 100644 --- a/docs/MQTTClient_internal/html/MQTTPacketOut_8c.html +++ b/docs/MQTTClient_internal/html/MQTTPacketOut_8c.html @@ -629,7 +629,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTPacket_8c.html b/docs/MQTTClient_internal/html/MQTTPacket_8c.html index 1fe342114..d8bc5404b 100644 --- a/docs/MQTTClient_internal/html/MQTTPacket_8c.html +++ b/docs/MQTTClient_internal/html/MQTTPacket_8c.html @@ -1873,14 +1873,14 @@

void * MQTTPacket_suback(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create suback packets.
Definition: MQTTPacketOut.c:290
-
void * MQTTPacket_ack(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create acknowledgement packets.
Definition: MQTTPacket.c:791
+
void * MQTTPacket_ack(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create acknowledgement packets.
Definition: MQTTPacket.c:794
void * MQTTPacket_connack(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create connack packets.
Definition: MQTTPacketOut.c:142
void * MQTTPacket_unsuback(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create unsuback packets.
Definition: MQTTPacketOut.c:411
-
void * MQTTPacket_header_only(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create packets which have only a header.
Definition: MQTTPacket.c:495
-
void * MQTTPacket_publish(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create publish packets.
Definition: MQTTPacket.c:553
+
void * MQTTPacket_header_only(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create packets which have only a header.
Definition: MQTTPacket.c:498
+
void * MQTTPacket_publish(int MQTTVersion, unsigned char aHeader, char *data, size_t datalen)
Function used in the new packets table to create publish packets.
Definition: MQTTPacket.c:556
diff --git a/docs/MQTTClient_internal/html/MQTTPersistenceDefault_8c.html b/docs/MQTTClient_internal/html/MQTTPersistenceDefault_8c.html index 9de0ec2b3..9f2fc21d8 100644 --- a/docs/MQTTClient_internal/html/MQTTPersistenceDefault_8c.html +++ b/docs/MQTTClient_internal/html/MQTTPersistenceDefault_8c.html @@ -459,7 +459,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTPersistence_8c.html b/docs/MQTTClient_internal/html/MQTTPersistence_8c.html index 2c52b517e..031583a30 100644 --- a/docs/MQTTClient_internal/html/MQTTPersistence_8c.html +++ b/docs/MQTTClient_internal/html/MQTTPersistence_8c.html @@ -695,7 +695,7 @@

diff --git a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c.html b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c.html index b89332d8f..57aa1b634 100644 --- a/docs/MQTTClient_internal/html/MQTTProtocolClient_8c.html +++ b/docs/MQTTClient_internal/html/MQTTProtocolClient_8c.html @@ -141,18 +141,18 @@

int MQTTProtocol_handlePublishes (void *pack, SOCKET sock)
 Process an incoming publish packet for a socket The payload field of the packet has not been transferred to another buffer at this point. More...
 
int MQTTProtocol_handlePubacks (void *pack, SOCKET sock)
 Process an incoming puback packet for a socket. More...
 
int MQTTProtocol_handlePubrecs (void *pack, SOCKET sock)
 Process an incoming pubrec packet for a socket. More...
 
int MQTTProtocol_handlePubacks (void *pack, SOCKET sock, Publications **pubToRemove)
 Process an incoming puback packet for a socket. More...
 
int MQTTProtocol_handlePubrecs (void *pack, SOCKET sock, Publications **pubToRemove)
 Process an incoming pubrec packet for a socket. More...
 
int MQTTProtocol_handlePubrels (void *pack, SOCKET sock)
 Process an incoming pubrel packet for a socket. More...
 
int MQTTProtocol_handlePubcomps (void *pack, SOCKET sock)
 Process an incoming pubcomp packet for a socket. More...
 
int MQTTProtocol_handlePubcomps (void *pack, SOCKET sock, Publications **pubToRemove)
 Process an incoming pubcomp packet for a socket. More...
 
void MQTTProtocol_keepalive (START_TIME_TYPE now)
 MQTT protocol keepAlive processing. More...
 
SOCKET sock sock,
Publications ** pubToRemove 
SOCKET sock sock,
Publications ** pubToRemove 
SOCKET sock sock,
Publications ** pubToRemove 
int Socket_new (const char *addr, size_t addr_len, int port, SOCKET *sock)
 Create a new socket and TCP connect to an address/port. More...
 
+void Socket_setWriteContinueCallback (Socket_writeContinue *mywritecontinue)
 
void Socket_setWriteCompleteCallback (Socket_writeComplete *mywritecomplete)
 
mod_s
 Structure to hold all socket data for this module.
 
+static Socket_writeContinue * writecontinue = NULL
 
static Socket_writeComplete * writecomplete = NULL
 
void Thread_start (thread_fn fn, void *parameter)
 Start a new thread. More...
 
+int Thread_set_name (const char *thread_name)
 
mutex_type Thread_create_mutex (int *rc)
 Create a new mutex. More...
 
int MQTTVersion
 Sets the version of MQTT to be used on the connect. More...
 
-int automaticReconnect
 Reconnect automatically in the case of a connection being lost?
int automaticReconnect
 Reconnect automatically in the case of a connection being lost. More...
 
int minRetryInterval
 Minimum retry interval in seconds. More...
 The minimum automatic reconnect retry interval in seconds. More...
 
int maxRetryInterval
 Maximum retry interval in seconds. More...
 The maximum automatic reconnect retry interval in seconds. More...
 
struct {
@@ -196,8 +195,30 @@

Detailed Description

MQTTAsync_connectOptions defines several settings that control the way the client connects to an MQTT server.

-

Default values are set in MQTTAsync_connectOptions_initializer.

+

Suitable default values are set in the following initializers:

    +
  • MQTTAsync_connectOptions_initializer: for MQTT 3.1.1 non-WebSockets
  • +
  • MQTTAsync_connectOptions_initializer5: for MQTT 5.0 non-WebSockets
  • +
  • MQTTAsync_connectOptions_initializer_ws: for MQTT 3.1.1 WebSockets
  • +
  • MQTTAsync_connectOptions_initializer5_ws: for MQTT 5.0 WebSockets
  • +

Field Documentation

+ +

◆ automaticReconnect

+ +
+
+ + + + +
int MQTTAsync_connectOptions::automaticReconnect
+
+ +

Reconnect automatically in the case of a connection being lost.

+

0=false, 1=true

+ +
+

◆ binarypwd

@@ -278,7 +299,7 @@

-

Maximum retry interval in seconds.

+

The maximum automatic reconnect retry interval in seconds.

The doubling stops here on failed retries.

@@ -295,7 +316,7 @@

-

Minimum retry interval in seconds.

+

The minimum automatic reconnect retry interval in seconds.

Doubled on each failed retry.

@@ -526,7 +547,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__createOptions.html b/docs/MQTTClient_internal/html/structMQTTAsync__createOptions.html index c1d43d386..1eff8d756 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__createOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__createOptions.html @@ -184,7 +184,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__disconnectOptions.html b/docs/MQTTClient_internal/html/structMQTTAsync__disconnectOptions.html index f6e2473b1..9bac24e6f 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__disconnectOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__disconnectOptions.html @@ -247,7 +247,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__failureData.html b/docs/MQTTClient_internal/html/structMQTTAsync__failureData.html index a2ced96ba..6c6debe38 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__failureData.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__failureData.html @@ -114,7 +114,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__failureData5.html b/docs/MQTTClient_internal/html/structMQTTAsync__failureData5.html index 2b3cdfed2..6db4ae4ae 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__failureData5.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__failureData5.html @@ -177,7 +177,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__init__options.html b/docs/MQTTClient_internal/html/structMQTTAsync__init__options.html index daa0eb154..30900fe3c 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__init__options.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__init__options.html @@ -130,7 +130,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__message.html b/docs/MQTTClient_internal/html/structMQTTAsync__message.html index 5e2369bd5..0d7d947a7 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__message.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__message.html @@ -240,7 +240,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__nameValue.html b/docs/MQTTClient_internal/html/structMQTTAsync__nameValue.html index db2ed7094..0ae56b6b3 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__nameValue.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__nameValue.html @@ -93,7 +93,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__queuedCommand.html b/docs/MQTTClient_internal/html/structMQTTAsync__queuedCommand.html index 5e4d86a76..bd79c5194 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__queuedCommand.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__queuedCommand.html @@ -117,7 +117,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__responseOptions.html b/docs/MQTTClient_internal/html/structMQTTAsync__responseOptions.html index 990ee935f..d1ebbd9ba 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__responseOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__responseOptions.html @@ -262,7 +262,7 @@

A token is returned from the call.

-

It can be used to track the state of this request, both in the callbacks and in future calls such as ::MQTTAsync_waitForCompletion.

+

It can be used to track the state of this request, both in the callbacks and in future calls such as ::MQTTAsync_waitForCompletion. This is output only - any change by the application will be ignored.

@@ -272,7 +272,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__struct.html b/docs/MQTTClient_internal/html/structMQTTAsync__struct.html index 2091b06da..f4b3ec6e9 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__struct.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__struct.html @@ -215,7 +215,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__successData.html b/docs/MQTTClient_internal/html/structMQTTAsync__successData.html index 12e6a70b8..5e7d005d4 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__successData.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__successData.html @@ -176,7 +176,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__successData5.html b/docs/MQTTClient_internal/html/structMQTTAsync__successData5.html index 760780a2a..407d067a9 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__successData5.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__successData5.html @@ -226,7 +226,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTAsync__willOptions.html b/docs/MQTTClient_internal/html/structMQTTAsync__willOptions.html index 212aa8ec1..b12c69766 100644 --- a/docs/MQTTClient_internal/html/structMQTTAsync__willOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTAsync__willOptions.html @@ -172,7 +172,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTClient__SSLOptions.html b/docs/MQTTClient_internal/html/structMQTTClient__SSLOptions.html index 4c55e13ad..ca56f5b4f 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__SSLOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__SSLOptions.html @@ -323,7 +323,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTClient__connectOptions.html b/docs/MQTTClient_internal/html/structMQTTClient__connectOptions.html index 800e28b06..73868071e 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__connectOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__connectOptions.html @@ -181,7 +181,13 @@

Detailed Description

MQTTClient_connectOptions defines several settings that control the way the client connects to an MQTT server.

-

Note: Default values are not defined for members of MQTTClient_connectOptions so it is good practice to specify all settings. If the MQTTClient_connectOptions structure is defined as an automatic variable, all members are set to random values and thus must be set by the client application. If the MQTTClient_connectOptions structure is defined as a static variable, initialization (in compliant compilers) sets all values to 0 (NULL for pointers). A keepAliveInterval setting of 0 prevents correct operation of the client and so you must at least set a value for keepAliveInterval.

+

Note: Default values are not defined for members of MQTTClient_connectOptions so it is good practice to specify all settings. If the MQTTClient_connectOptions structure is defined as an automatic variable, all members are set to random values and thus must be set by the client application. If the MQTTClient_connectOptions structure is defined as a static variable, initialization (in compliant compilers) sets all values to 0 (NULL for pointers). A keepAliveInterval setting of 0 prevents correct operation of the client and so you must at least set a value for keepAliveInterval.

+

Suitable default values are set in the following initializers:

    +
  • MQTTClient_connectOptions_initializer: for MQTT 3.1.1 non-WebSockets
  • +
  • MQTTClient_connectOptions_initializer5: for MQTT 5.0 non-WebSockets
  • +
  • MQTTClient_connectOptions_initializer_ws: for MQTT 3.1.1 WebSockets
  • +
  • MQTTClient_connectOptions_initializer5_ws: for MQTT 5.0 WebSockets
  • +

Field Documentation

◆ binarypwd

@@ -429,7 +435,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTClient__createOptions.html b/docs/MQTTClient_internal/html/structMQTTClient__createOptions.html index 8ee7f4c88..16437d5cf 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__createOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__createOptions.html @@ -147,7 +147,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTClient__init__options.html b/docs/MQTTClient_internal/html/structMQTTClient__init__options.html index 4aed1e183..9e6ff6411 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__init__options.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__init__options.html @@ -130,7 +130,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTClient__message.html b/docs/MQTTClient_internal/html/structMQTTClient__message.html index 902bbc05a..c7504c0da 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__message.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__message.html @@ -224,7 +224,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTClient__nameValue.html b/docs/MQTTClient_internal/html/structMQTTClient__nameValue.html index e499983da..6a0982952 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__nameValue.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__nameValue.html @@ -92,7 +92,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTClient__persistence.html b/docs/MQTTClient_internal/html/structMQTTClient__persistence.html index cf52de0ba..dfb45b5cc 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__persistence.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__persistence.html @@ -121,7 +121,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTClient__willOptions.html b/docs/MQTTClient_internal/html/structMQTTClient__willOptions.html index 11f2c1f94..0498ca8c5 100644 --- a/docs/MQTTClient_internal/html/structMQTTClient__willOptions.html +++ b/docs/MQTTClient_internal/html/structMQTTClient__willOptions.html @@ -172,7 +172,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTClients.html b/docs/MQTTClient_internal/html/structMQTTClients.html index 5d1d386f4..064b8e1e0 100644 --- a/docs/MQTTClient_internal/html/structMQTTClients.html +++ b/docs/MQTTClient_internal/html/structMQTTClients.html @@ -152,7 +152,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTLenString.html b/docs/MQTTClient_internal/html/structMQTTLenString.html index bb6f71785..3f4cefe51 100644 --- a/docs/MQTTClient_internal/html/structMQTTLenString.html +++ b/docs/MQTTClient_internal/html/structMQTTLenString.html @@ -93,7 +93,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTPacket.html b/docs/MQTTClient_internal/html/structMQTTPacket.html index d3c5f8991..568b0afc3 100644 --- a/docs/MQTTClient_internal/html/structMQTTPacket.html +++ b/docs/MQTTClient_internal/html/structMQTTPacket.html @@ -98,7 +98,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTPersistence__message.html b/docs/MQTTClient_internal/html/structMQTTPersistence__message.html index ad1b9b711..c08f4bebe 100644 --- a/docs/MQTTClient_internal/html/structMQTTPersistence__message.html +++ b/docs/MQTTClient_internal/html/structMQTTPersistence__message.html @@ -116,7 +116,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTPersistence__qEntry.html b/docs/MQTTClient_internal/html/structMQTTPersistence__qEntry.html index a4750606d..54a74e6e4 100644 --- a/docs/MQTTClient_internal/html/structMQTTPersistence__qEntry.html +++ b/docs/MQTTClient_internal/html/structMQTTPersistence__qEntry.html @@ -102,7 +102,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTProperties.html b/docs/MQTTClient_internal/html/structMQTTProperties.html index 7e9c6dc9a..eb792be11 100644 --- a/docs/MQTTClient_internal/html/structMQTTProperties.html +++ b/docs/MQTTClient_internal/html/structMQTTProperties.html @@ -111,7 +111,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTProperty.html b/docs/MQTTClient_internal/html/structMQTTProperty.html index 3e29cd6c3..e664794b8 100644 --- a/docs/MQTTClient_internal/html/structMQTTProperty.html +++ b/docs/MQTTClient_internal/html/structMQTTProperty.html @@ -144,7 +144,7 @@

diff --git a/docs/MQTTClient_internal/html/structMQTTProtocol.html b/docs/MQTTClient_internal/html/structMQTTProtocol.html index 839066a96..4767dcea8 100644 --- a/docs/MQTTClient_internal/html/structMQTTProtocol.html +++ b/docs/MQTTClient_internal/html/structMQTTProtocol.html @@ -100,7 +100,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTResponse.html b/docs/MQTTClient_internal/html/structMQTTResponse.html index 8f10e6737..09f0b1332 100644 --- a/docs/MQTTClient_internal/html/structMQTTResponse.html +++ b/docs/MQTTClient_internal/html/structMQTTResponse.html @@ -111,7 +111,7 @@ diff --git a/docs/MQTTClient_internal/html/structMQTTSubscribe__options.html b/docs/MQTTClient_internal/html/structMQTTSubscribe__options.html index 4315a1bd5..772a53dde 100644 --- a/docs/MQTTClient_internal/html/structMQTTSubscribe__options.html +++ b/docs/MQTTClient_internal/html/structMQTTSubscribe__options.html @@ -170,7 +170,7 @@

diff --git a/docs/MQTTClient_internal/html/structMessages.html b/docs/MQTTClient_internal/html/structMessages.html index 9622ca399..93a1ba2cd 100644 --- a/docs/MQTTClient_internal/html/structMessages.html +++ b/docs/MQTTClient_internal/html/structMessages.html @@ -132,7 +132,7 @@ diff --git a/docs/MQTTClient_internal/html/structNodeStruct.html b/docs/MQTTClient_internal/html/structNodeStruct.html index bb3d76ccd..a26cf5583 100644 --- a/docs/MQTTClient_internal/html/structNodeStruct.html +++ b/docs/MQTTClient_internal/html/structNodeStruct.html @@ -112,7 +112,7 @@ diff --git a/docs/MQTTClient_internal/html/structPacketBuffers.html b/docs/MQTTClient_internal/html/structPacketBuffers.html index a3d50d365..0631796c2 100644 --- a/docs/MQTTClient_internal/html/structPacketBuffers.html +++ b/docs/MQTTClient_internal/html/structPacketBuffers.html @@ -109,7 +109,7 @@ diff --git a/docs/MQTTClient_internal/html/structPublications.html b/docs/MQTTClient_internal/html/structPublications.html index 002435d8c..de899334c 100644 --- a/docs/MQTTClient_internal/html/structPublications.html +++ b/docs/MQTTClient_internal/html/structPublications.html @@ -103,7 +103,7 @@ diff --git a/docs/MQTTClient_internal/html/structPublish.html b/docs/MQTTClient_internal/html/structPublish.html index 41301df25..75039120d 100644 --- a/docs/MQTTClient_internal/html/structPublish.html +++ b/docs/MQTTClient_internal/html/structPublish.html @@ -149,7 +149,7 @@

diff --git a/docs/MQTTClient_internal/html/structSHA__CTX__S.html b/docs/MQTTClient_internal/html/structSHA__CTX__S.html index 21bca41b9..d250e839e 100644 --- a/docs/MQTTClient_internal/html/structSHA__CTX__S.html +++ b/docs/MQTTClient_internal/html/structSHA__CTX__S.html @@ -97,7 +97,7 @@ diff --git a/docs/MQTTClient_internal/html/structSockets.html b/docs/MQTTClient_internal/html/structSockets.html index a2b890237..0834b2b15 100644 --- a/docs/MQTTClient_internal/html/structSockets.html +++ b/docs/MQTTClient_internal/html/structSockets.html @@ -97,10 +97,13 @@ unsigned int nfds  no of file descriptors for poll More...
  - -struct pollfd * fds - poll read file descriptors
-  + +struct pollfd * fds_read + poll read file descriptors
+  + +struct pollfd * fds_write struct { @@ -111,9 +114,12 @@    unsigned int   nfds  number of fds in the fds_saved array
  - -   struct pollfd *   fds -  + +   struct pollfd *   fds_write +  + +   struct pollfd *   fds_read +  } saved   @@ -143,7 +149,7 @@

diff --git a/docs/MQTTClient_internal/html/structSuback.html b/docs/MQTTClient_internal/html/structSuback.html index 8c2e3fbf3..553f13fd2 100644 --- a/docs/MQTTClient_internal/html/structSuback.html +++ b/docs/MQTTClient_internal/html/structSuback.html @@ -136,7 +136,7 @@

diff --git a/docs/MQTTClient_internal/html/structTree.html b/docs/MQTTClient_internal/html/structTree.html index b784d3c01..45d034a33 100644 --- a/docs/MQTTClient_internal/html/structTree.html +++ b/docs/MQTTClient_internal/html/structTree.html @@ -126,7 +126,7 @@ diff --git a/docs/MQTTClient_internal/html/structUnsuback.html b/docs/MQTTClient_internal/html/structUnsuback.html index 7a3611ea8..cf224e499 100644 --- a/docs/MQTTClient_internal/html/structUnsuback.html +++ b/docs/MQTTClient_internal/html/structUnsuback.html @@ -136,7 +136,7 @@

diff --git a/docs/MQTTClient_internal/html/structcond__type__struct.html b/docs/MQTTClient_internal/html/structcond__type__struct.html index 3bfbb1cd5..97e172014 100644 --- a/docs/MQTTClient_internal/html/structcond__type__struct.html +++ b/docs/MQTTClient_internal/html/structcond__type__struct.html @@ -84,7 +84,7 @@ diff --git a/docs/MQTTClient_internal/html/structframeData.html b/docs/MQTTClient_internal/html/structframeData.html index 57219fa2e..af6f8f0f1 100644 --- a/docs/MQTTClient_internal/html/structframeData.html +++ b/docs/MQTTClient_internal/html/structframeData.html @@ -105,7 +105,7 @@ diff --git a/docs/MQTTClient_internal/html/structheap__info.html b/docs/MQTTClient_internal/html/structheap__info.html index 2234e6ecf..043e998d3 100644 --- a/docs/MQTTClient_internal/html/structheap__info.html +++ b/docs/MQTTClient_internal/html/structheap__info.html @@ -93,7 +93,7 @@ diff --git a/docs/MQTTClient_internal/html/structnameToType.html b/docs/MQTTClient_internal/html/structnameToType.html index b33903297..7bd46c73d 100644 --- a/docs/MQTTClient_internal/html/structnameToType.html +++ b/docs/MQTTClient_internal/html/structnameToType.html @@ -84,7 +84,7 @@ diff --git a/docs/MQTTClient_internal/html/structnetworkHandles.html b/docs/MQTTClient_internal/html/structnetworkHandles.html index 0f8412019..be98a3f88 100644 --- a/docs/MQTTClient_internal/html/structnetworkHandles.html +++ b/docs/MQTTClient_internal/html/structnetworkHandles.html @@ -115,7 +115,7 @@ diff --git a/docs/MQTTClient_internal/html/structpending__write.html b/docs/MQTTClient_internal/html/structpending__write.html index b82107327..d750b960a 100644 --- a/docs/MQTTClient_internal/html/structpending__write.html +++ b/docs/MQTTClient_internal/html/structpending__write.html @@ -93,7 +93,7 @@ diff --git a/docs/MQTTClient_internal/html/structpending__writes.html b/docs/MQTTClient_internal/html/structpending__writes.html index cd2a947b7..719a82c65 100644 --- a/docs/MQTTClient_internal/html/structpending__writes.html +++ b/docs/MQTTClient_internal/html/structpending__writes.html @@ -96,7 +96,7 @@ diff --git a/docs/MQTTClient_internal/html/structprops__rc__parms.html b/docs/MQTTClient_internal/html/structprops__rc__parms.html index 2a39b2596..33d4d8be7 100644 --- a/docs/MQTTClient_internal/html/structprops__rc__parms.html +++ b/docs/MQTTClient_internal/html/structprops__rc__parms.html @@ -108,7 +108,7 @@ diff --git a/docs/MQTTClient_internal/html/structqEntry.html b/docs/MQTTClient_internal/html/structqEntry.html index 30391cc01..5c2e244d2 100644 --- a/docs/MQTTClient_internal/html/structqEntry.html +++ b/docs/MQTTClient_internal/html/structqEntry.html @@ -107,7 +107,7 @@ diff --git a/docs/MQTTClient_internal/html/structsocket__queue.html b/docs/MQTTClient_internal/html/structsocket__queue.html index 868d6accd..31f2d798b 100644 --- a/docs/MQTTClient_internal/html/structsocket__queue.html +++ b/docs/MQTTClient_internal/html/structsocket__queue.html @@ -102,7 +102,7 @@ diff --git a/docs/MQTTClient_internal/html/structstackEntry.html b/docs/MQTTClient_internal/html/structstackEntry.html index c4fdd8c6a..2d38c7db3 100644 --- a/docs/MQTTClient_internal/html/structstackEntry.html +++ b/docs/MQTTClient_internal/html/structstackEntry.html @@ -87,7 +87,7 @@ diff --git a/docs/MQTTClient_internal/html/structstorageElement.html b/docs/MQTTClient_internal/html/structstorageElement.html index 7bedb2aa4..d25a7f3a6 100644 --- a/docs/MQTTClient_internal/html/structstorageElement.html +++ b/docs/MQTTClient_internal/html/structstorageElement.html @@ -99,7 +99,7 @@ diff --git a/docs/MQTTClient_internal/html/structthreadEntry.html b/docs/MQTTClient_internal/html/structthreadEntry.html index 2ce94395e..a2bfecd19 100644 --- a/docs/MQTTClient_internal/html/structthreadEntry.html +++ b/docs/MQTTClient_internal/html/structthreadEntry.html @@ -99,7 +99,7 @@ diff --git a/docs/MQTTClient_internal/html/structtraceEntry.html b/docs/MQTTClient_internal/html/structtraceEntry.html index 94acf1a84..35ac5e3a3 100644 --- a/docs/MQTTClient_internal/html/structtraceEntry.html +++ b/docs/MQTTClient_internal/html/structtraceEntry.html @@ -108,7 +108,7 @@ diff --git a/docs/MQTTClient_internal/html/structtrace__settings__type.html b/docs/MQTTClient_internal/html/structtrace__settings__type.html index e6a7b2f58..09418f135 100644 --- a/docs/MQTTClient_internal/html/structtrace__settings__type.html +++ b/docs/MQTTClient_internal/html/structtrace__settings__type.html @@ -90,7 +90,7 @@ diff --git a/docs/MQTTClient_internal/html/structwillMessages.html b/docs/MQTTClient_internal/html/structwillMessages.html index a0e259c4f..7d86dc22e 100644 --- a/docs/MQTTClient_internal/html/structwillMessages.html +++ b/docs/MQTTClient_internal/html/structwillMessages.html @@ -100,7 +100,7 @@ diff --git a/docs/MQTTClient_internal/html/structws__frame.html b/docs/MQTTClient_internal/html/structws__frame.html index 03d755724..811a86736 100644 --- a/docs/MQTTClient_internal/html/structws__frame.html +++ b/docs/MQTTClient_internal/html/structws__frame.html @@ -91,7 +91,7 @@ diff --git a/docs/MQTTClient_internal/html/unionHeader.html b/docs/MQTTClient_internal/html/unionHeader.html index 145d98501..a14e2aad2 100644 --- a/docs/MQTTClient_internal/html/unionHeader.html +++ b/docs/MQTTClient_internal/html/unionHeader.html @@ -109,7 +109,7 @@ diff --git a/docs/MQTTClient_internal/html/utf-8_8c.html b/docs/MQTTClient_internal/html/utf-8_8c.html index ed1d318dc..c87dc0441 100644 --- a/docs/MQTTClient_internal/html/utf-8_8c.html +++ b/docs/MQTTClient_internal/html/utf-8_8c.html @@ -297,7 +297,7 @@