Home
last modified time | relevance | path

Searched refs:mqtt (Results 1 – 25 of 32) sorted by relevance

12

/third_party/libwebsockets/lib/secure-streams/protocols/
Dss-mqtt.c32 if (h->u.mqtt.heap_baggage) { in secstream_mqtt_cleanup()
33 lws_free(h->u.mqtt.heap_baggage); in secstream_mqtt_cleanup()
34 h->u.mqtt.heap_baggage = NULL; in secstream_mqtt_cleanup()
37 if (h->u.mqtt.sub_info.topic) { in secstream_mqtt_cleanup()
38 for (i = 0; i < h->u.mqtt.sub_info.num_topics; i++) { in secstream_mqtt_cleanup()
39 if (h->u.mqtt.sub_info.topic[i].name) { in secstream_mqtt_cleanup()
40 lws_free((void*)h->u.mqtt.sub_info.topic[i].name); in secstream_mqtt_cleanup()
41 h->u.mqtt.sub_info.topic[i].name = NULL; in secstream_mqtt_cleanup()
44 lws_free(h->u.mqtt.sub_info.topic); in secstream_mqtt_cleanup()
45 h->u.mqtt.sub_info.topic = NULL; in secstream_mqtt_cleanup()
[all …]
/third_party/libwebsockets/lib/roles/mqtt/
Dops-mqtt.c283 if (wsi->mqtt && wsi->mqtt->send_pingreq && !wsi->mqtt->inside_payload) { in rops_handle_POLLOUT_mqtt()
291 wsi->mqtt->send_pingreq = 0; in rops_handle_POLLOUT_mqtt()
305 if (wsi->mqtt && !wsi->mqtt->inside_payload && in rops_handle_POLLOUT_mqtt()
306 (wsi->mqtt->send_pubrec || wsi->mqtt->send_pubrel || in rops_handle_POLLOUT_mqtt()
307 wsi->mqtt->send_pubcomp)) { in rops_handle_POLLOUT_mqtt()
311 if (wsi->mqtt->send_pubrec) { in rops_handle_POLLOUT_mqtt()
313 __func__, wsi->mqtt->peer_ack_pkt_id); in rops_handle_POLLOUT_mqtt()
317 wsi->mqtt->peer_ack_pkt_id); in rops_handle_POLLOUT_mqtt()
318 wsi->mqtt->send_pubrec = 0; in rops_handle_POLLOUT_mqtt()
319 } else if (wsi->mqtt->send_pubrel) { in rops_handle_POLLOUT_mqtt()
[all …]
Dmqtt.c326 lws_mqtt_subs_t* lws_mqtt_find_sub(struct _lws_mqtt_related* mqtt, in lws_mqtt_find_sub() argument
328 lws_mqtt_subs_t *s = mqtt->subs_head; in lws_mqtt_find_sub()
405 lws_mqtt_create_sub(struct _lws_mqtt_related *mqtt, const char *topic) in lws_mqtt_create_sub() argument
411 flag = lws_mqtt_validate_topic(topic, topiclen, mqtt->client.aws_iot); in lws_mqtt_create_sub()
442 mysub->next = mqtt->subs_head; in lws_mqtt_create_sub()
443 mqtt->subs_head = mysub; in lws_mqtt_create_sub()
448 __func__, mysub, mqtt); in lws_mqtt_create_sub()
454 lws_mqtt_client_remove_subs(struct _lws_mqtt_related *mqtt) in lws_mqtt_client_remove_subs() argument
456 lws_mqtt_subs_t *s = mqtt->subs_head; in lws_mqtt_client_remove_subs()
461 __func__, mqtt); in lws_mqtt_client_remove_subs()
[all …]
DCMakeLists.txt36 roles/mqtt/mqtt.c
37 roles/mqtt/ops-mqtt.c
38 roles/mqtt/primitives.c
39 roles/mqtt/client/client-mqtt.c
40 roles/mqtt/client/client-mqtt-handshake.c
Dprivate-lib-roles-mqtt.h438 lws_mqtt_find_sub(struct _lws_mqtt_related *mqtt, const char *topic);
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-policy2c/
Dminimal-secure-streams.c564 if (pol->u.mqtt.topic) in main()
566 pol->u.mqtt.topic); in main()
567 if (pol->u.mqtt.subscribe) in main()
569 pol->u.mqtt.subscribe); in main()
570 if (pol->u.mqtt.will_topic) in main()
572 pol->u.mqtt.will_topic); in main()
573 if (pol->u.mqtt.will_message) in main()
575 pol->u.mqtt.will_message); in main()
577 if (pol->u.mqtt.keep_alive) in main()
579 pol->u.mqtt.keep_alive); in main()
[all …]
/third_party/libwebsockets/minimal-examples/mqtt-client/
DREADME.md3 minimal-mqtt-client|Simple demo for mqtt client operation
4 minimal-mqtt-client-multi|Demonstrates automatic binding / muxing of independent connections to sha…
/third_party/libwebsockets/minimal-examples/mqtt-client/minimal-mqtt-client/
DCMakeLists.txt1 project(lws-minimal-mqtt-client C)
6 set(SAMP lws-minimal-mqtt-client)
7 set(SRCS minimal-mqtt-client.c)
/third_party/libwebsockets/minimal-examples/mqtt-client/minimal-mqtt-client-multi/
DCMakeLists.txt1 project(lws-minimal-mqtt-client-multi C)
8 set(SAMP lws-minimal-mqtt-client-multi)
9 set(SRCS minimal-mqtt-client-multi.c)
/third_party/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt.c93 lws_mqttc_t *c = &wsi->mqtt->client; in lws_read_mqtt()
106 wsi->mqtt = lws_zalloc(sizeof(*wsi->mqtt), "client mqtt struct"); in lws_create_client_mqtt_object()
107 if (!wsi->mqtt) in lws_create_client_mqtt_object()
110 wsi->mqtt->wsi = wsi; in lws_create_client_mqtt_object()
111 c = &wsi->mqtt->client; in lws_create_client_mqtt_object()
Dclient-mqtt-handshake.c35 const lws_mqttc_t *c = &wsi->mqtt->client; in lws_mqtt_client_send_connect()
/third_party/libwebsockets/lib/secure-streams/
Dpolicy-json.c1012 pp = (char **)&a->curr[LTY_POLICY].p->u.mqtt.topic; in lws_ss_policy_parser_cb()
1016 pp = (char **)&a->curr[LTY_POLICY].p->u.mqtt.subscribe; in lws_ss_policy_parser_cb()
1020 a->curr[LTY_POLICY].p->u.mqtt.qos = (uint8_t)atoi(ctx->buf); in lws_ss_policy_parser_cb()
1024 a->curr[LTY_POLICY].p->u.mqtt.keep_alive = (uint16_t)atoi(ctx->buf); in lws_ss_policy_parser_cb()
1028 a->curr[LTY_POLICY].p->u.mqtt.clean_start = in lws_ss_policy_parser_cb()
1032 pp = (char **)&a->curr[LTY_POLICY].p->u.mqtt.will_topic; in lws_ss_policy_parser_cb()
1036 pp = (char **)&a->curr[LTY_POLICY].p->u.mqtt.will_message; in lws_ss_policy_parser_cb()
1040 a->curr[LTY_POLICY].p->u.mqtt.will_qos = (uint8_t)atoi(ctx->buf); in lws_ss_policy_parser_cb()
1043 a->curr[LTY_POLICY].p->u.mqtt.will_retain = in lws_ss_policy_parser_cb()
1047 pp = (char **)&a->curr[LTY_POLICY].p->u.mqtt.birth_topic; in lws_ss_policy_parser_cb()
[all …]
/third_party/typescript/tests/cases/user/mqtt/
Dindex.ts1 import mqtt = require("mqtt");
/third_party/lwip/doc/
Dmqtt_client.txt6 http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-staticpolicy/
Dstatic-policy.h1335 .mqtt = {
1353 .mqtt = {
/third_party/lwip/test/unit/
DFilelists.mk46 $(TESTDIR)/mqtt/test_mqtt.c \
DFilelists.cmake26 ${LWIP_TESTDIR}/mqtt/test_mqtt.c
/third_party/curl/
Dbackport-CVE-2022-42915.patch125 +mqtt
140 …xample telnet://another ftp://yes ftps://again imap://more ldap://perhaps mqtt://yes pop3://mail r…
/third_party/lwip/src/
DFilelists.mk190 MQTTFILES=$(LWIPDIR)/apps/mqtt/mqtt.c
DFilelists.cmake213 ${LWIP_DIR}/src/apps/mqtt/mqtt.c
/third_party/libwebsockets/include/libwebsockets/
Dlws-secure-streams-policy.h327 } mqtt; member
/third_party/libwebsockets/lib/roles/
DCMakeLists.txt35 add_subdir_include_directories(mqtt)
/third_party/lwip/
Dlwip.gni204 MQTTFILES = [ "$LWIPDIR/apps/mqtt/mqtt.c" ]
/third_party/libwebsockets/
Dbug_report.md15 raw / http / ws / mqtt / other (give me a hint)
DBUILD.gn202 "//third_party/libwebsockets/lib/roles/mqtt",
203 "//third_party/libwebsockets/lib/roles/mqtt/client",
307 "//third_party/libwebsockets/lib/roles/mqtt",

12