Home
last modified time | relevance | path

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

123

/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
/third_party/curl/lib/
Dmqtt.c103 DEBUGASSERT(data->req.p.mqtt == NULL); in mqtt_setup_conn()
108 data->req.p.mqtt = mq; in mqtt_setup_conn()
118 struct MQTT *mq = data->req.p.mqtt; in mqtt_send()
408 conn->proto.mqtt.packetid++; in mqtt_subscribe()
423 packet[1 + n] = (conn->proto.mqtt.packetid >> 8) & 0xff; in mqtt_subscribe()
424 packet[2 + n] = conn->proto.mqtt.packetid & 0xff; in mqtt_subscribe()
448 struct mqtt_conn *mqtt = &conn->proto.mqtt; in mqtt_verify_suback() local
463 if(readbuf[0] != ((mqtt->packetid >> 8) & 0xff) || in mqtt_verify_suback()
464 readbuf[1] != (mqtt->packetid & 0xff) || in mqtt_verify_suback()
565 struct mqtt_conn *mqtt = &conn->proto.mqtt; in mqstate() local
[all …]
/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/curl/tests/data/
Dtest119120 mqtt
23 mqtt
29 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something
Dtest119320 mqtt
23 mqtt
29 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d @log/payload%TESTNUMBER
Dtest119924 mqtt
27 mqtt
33 mqtt://%HOSTIP:%MQTTPORT -d ""
Dtest220520 mqtt
23 mqtt
32 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -K log/input%TESTNUMBER
Dtest220120 mqtt
23 mqtt
29 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something -u testuser:testpasswd
Dtest119024 mqtt
27 mqtt
33 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
Dtest220225 mqtt
28 mqtt
34 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something -u fakeuser:fakepasswd
Dtest119824 mqtt
27 mqtt
33 mqtt://%HOSTIP:%MQTTPORT/%20 -d ""
Dtest191624 mqtt
27 mqtt
36 "mqtt://%HOSTIP:%MQTTPORT/%20"
Dtest119528 mqtt
31 mqtt
37 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
Dtest220424 mqtt
27 mqtt
33 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -u testuser:testpasswd
Dtest220329 mqtt
32 mqtt
38 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
Dtest119427 mqtt
30 mqtt
36 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
Dtest119224 mqtt
27 mqtt
33 mqtt://%HOSTIP:%MQTTPORT/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA…
Dtest191726 mqtt
30 mqtt
39 "mqtt://%HOSTIP:%MQTTPORT/%20"
Dtest119629 mqtt
32 mqtt
38 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER

123