Lines Matching refs:mqtt_param
20 iotx_mqtt_param_t *mqtt_param = NULL; in iotx_cm_open_mqtt() local
34 mqtt_param = (iotx_mqtt_param_t *)cm_malloc(sizeof(iotx_mqtt_param_t)); in iotx_cm_open_mqtt()
35 if (mqtt_param == NULL) { in iotx_cm_open_mqtt()
40 memset(mqtt_param, 0, sizeof(iotx_mqtt_param_t)); in iotx_cm_open_mqtt()
41 mqtt_param->request_timeout_ms = params->request_timeout_ms; in iotx_cm_open_mqtt()
42 mqtt_param->clean_session = 0; in iotx_cm_open_mqtt()
43 mqtt_param->keepalive_interval_ms = params->keepalive_interval_ms; in iotx_cm_open_mqtt()
44 mqtt_param->read_buf_size = params->read_buf_size; in iotx_cm_open_mqtt()
45 mqtt_param->write_buf_size = params->write_buf_size; in iotx_cm_open_mqtt()
47 mqtt_param->handle_event.h_fp = iotx_cloud_conn_mqtt_event_handle; in iotx_cm_open_mqtt()
48 mqtt_param->handle_event.pcontext = NULL; in iotx_cm_open_mqtt()
50 _mqtt_conncection->open_params = mqtt_param; in iotx_cm_open_mqtt()
64 if (mqtt_param != NULL) { in iotx_cm_open_mqtt()
65 cm_free(mqtt_param); in iotx_cm_open_mqtt()