Lines Matching refs:mqtt_params
86 amp_mqtt_params_t *mqtt_params = NULL; in native_mqtt_start() local
116 mqtt_params = (amp_mqtt_params_t *)aos_malloc(sizeof(amp_mqtt_params_t)); in native_mqtt_start()
117 if (!mqtt_params) { in native_mqtt_start()
122 mqtt_params->host = duk_get_string(ctx, -6); in native_mqtt_start()
123 mqtt_params->port = duk_get_number(ctx, -5); in native_mqtt_start()
124 mqtt_params->clientid = duk_get_string(ctx, -4); in native_mqtt_start()
125 mqtt_params->username = duk_get_string(ctx, -3); in native_mqtt_start()
126 mqtt_params->password = duk_get_string(ctx, -2); in native_mqtt_start()
127 mqtt_params->keepaliveSec = duk_get_number(ctx, -1); in native_mqtt_start()
129 amp_debug(MOD_STR, "host: %s, port: %d\n", mqtt_params->host, in native_mqtt_start()
130 mqtt_params->port); in native_mqtt_start()
132 mqtt_params->clientid, mqtt_params->username, in native_mqtt_start()
133 mqtt_params->password); in native_mqtt_start()
137 mqtt_params->js_cb_ref[MQTT_JSCALLBACK_START_CLIENT_REF] = be_ref(ctx); in native_mqtt_start()
141 mqtt_params, 1024 * 4, MQTT_TSK_PRIORITY); in native_mqtt_start()
144 be_unref(ctx, mqtt_params->js_cb_ref[MQTT_JSCALLBACK_START_CLIENT_REF]); in native_mqtt_start()
145 aos_free(mqtt_params); in native_mqtt_start()