Lines Matching refs:topic
139 char *topic = NULL; in linkkit_ntp_time_request() local
148 topic = (char *)IMPL_NTP_MALLOC(topic_len + 1); in linkkit_ntp_time_request()
149 if (topic == NULL) { in linkkit_ntp_time_request()
152 memset(topic, 0, topic_len + 1); in linkkit_ntp_time_request()
154 HAL_Snprintf(topic, topic_len, TOPIC_NTP_REPLY, pk, dn); in linkkit_ntp_time_request()
157 NULL, topic, IOTX_MQTT_QOS3_SUB_LOCAL, in linkkit_ntp_time_request()
162 NULL, topic, IOTX_MQTT_QOS0, in linkkit_ntp_time_request()
170 memset(topic, 0, topic_len + 1); in linkkit_ntp_time_request()
171 HAL_Snprintf(topic, topic_len, TOPIC_NTP, pk, dn); in linkkit_ntp_time_request()
188 IOT_MQTT_Publish_Simple(NULL, topic, IOTX_MQTT_QOS0, packet, final_len); in linkkit_ntp_time_request()
191 if (topic) { in linkkit_ntp_time_request()
192 IMPL_NTP_FREE(topic); in linkkit_ntp_time_request()