Lines Matching refs:client_ctx
44 static struct mqtt_client client_ctx;
76 mqtt_client_init(&client_ctx);
79 client_ctx.broker = &broker;
80 client_ctx.evt_cb = mqtt_evt_handler;
81 client_ctx.client_id.utf8 = (uint8_t *)"zephyr_mqtt_client";
82 client_ctx.client_id.size = sizeof("zephyr_mqtt_client") - 1;
83 client_ctx.password = NULL;
84 client_ctx.user_name = NULL;
85 client_ctx.protocol_version = MQTT_VERSION_3_1_1;
86 client_ctx.transport.type = MQTT_TRANSPORT_NON_SECURE;
89 client_ctx.rx_buf = rx_buffer;
90 client_ctx.rx_buf_size = sizeof(rx_buffer);
91 client_ctx.tx_buf = tx_buffer;
92 client_ctx.tx_buf_size = sizeof(tx_buffer);
105 rc = mqtt_connect(&client_ctx);
110 fds[0].fd = client_ctx.transport.tcp.sock;
114 mqtt_input(&client_ctx);
117 mqtt_abort(&client_ctx);
144 client_ctx.transport.type = MQTT_TRANSPORT_SECURE;
146 struct mqtt_sec_config *tls_config = &client_ctx.transport.tls.config;