Home
last modified time | relevance | path

Searched refs:topic_info (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/linkkit/ota/
A Dota_mqtt.c63 iotx_mqtt_topic_info_t topic_info; in otamqtt_Publish() local
65 memset(&topic_info, 0, sizeof(iotx_mqtt_topic_info_t)); in otamqtt_Publish()
68 topic_info.qos = IOTX_MQTT_QOS0; in otamqtt_Publish()
70 topic_info.qos = IOTX_MQTT_QOS1; in otamqtt_Publish()
72 topic_info.payload = (void *)msg; in otamqtt_Publish()
73 topic_info.payload_len = strlen(msg); in otamqtt_Publish()
114 OTA_LOG_DEBUG("topic=%.*s", topic_info->topic_len, topic_info->ptopic); in otamqtt_UpgrageCb()
116 topic_info->payload_len, (char *)topic_info->payload); in otamqtt_UpgrageCb()
130 topic_info->payload_len, in otamqtt_UpgrageCb()
138 topic_info->payload_len, in otamqtt_UpgrageCb()
[all …]
A Diotx_ota.c527 iotx_mqtt_topic_info_t topic_info; in iotx_ota_get_config() local
529 memset(&topic_info, 0, sizeof(iotx_mqtt_topic_info_t)); in iotx_ota_get_config()
570 topic_info.qos = IOTX_MQTT_QOS0; in iotx_ota_get_config()
571 topic_info.payload = (void *)msg_get; in iotx_ota_get_config()
572 topic_info.payload_len = strlen(msg_get); in iotx_ota_get_config()
574 ret = osc_RequestConfig(h_ota->ch_signal, topic, &topic_info); in iotx_ota_get_config()
/AliOS-Things-master/components/linkkit/dev_model/
A Diotx_cm_mqtt.c191 iotx_mqtt_topic_info_pt topic_info = in iotx_cloud_conn_mqtt_event_handle() local
199 cm_warning("bypass %d bytes on [%.*s]", topic_info->payload_len, in iotx_cloud_conn_mqtt_event_handle()
200 topic_info->topic_len, topic_info->ptopic); in iotx_cloud_conn_mqtt_event_handle()
204 topic_handle_func(_mqtt_conncection->fd, topic_info->ptopic, in iotx_cloud_conn_mqtt_event_handle()
205 topic_info->topic_len, topic_info->payload, in iotx_cloud_conn_mqtt_event_handle()
206 topic_info->payload_len, NULL); in iotx_cloud_conn_mqtt_event_handle()
208 topic = cm_malloc(topic_info->topic_len + 1); in iotx_cloud_conn_mqtt_event_handle()
213 memset(topic, 0, topic_info->topic_len + 1); in iotx_cloud_conn_mqtt_event_handle()
214 memcpy(topic, topic_info->ptopic, topic_info->topic_len); in iotx_cloud_conn_mqtt_event_handle()
216 topic_handle_func(_mqtt_conncection->fd, topic, topic_info->payload, in iotx_cloud_conn_mqtt_event_handle()
[all …]
/AliOS-Things-master/components/linkkit/dynamic_register/
A Ddynreg.c407 iotx_mqtt_topic_info_t *topic_info = (iotx_mqtt_topic_info_pt)msg->msg; in _mqtt_dynreg_topic_handle() local
418 res = infra_json_value((char *)topic_info->payload, in _mqtt_dynreg_topic_handle()
419 topic_info->payload_len, "deviceSecret", in _mqtt_dynreg_topic_handle()
425 dynreg_info("Topic : %.*s", topic_info->topic_len, in _mqtt_dynreg_topic_handle()
426 topic_info->ptopic); in _mqtt_dynreg_topic_handle()
427 dynreg_info("Payload: %.*s", topic_info->payload_len, in _mqtt_dynreg_topic_handle()
428 topic_info->payload); in _mqtt_dynreg_topic_handle()

Completed in 66 milliseconds