Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event->msg_id always 0 in MQTT_EVENT_DATA #155

Open
lukunnr opened this issue Sep 10, 2018 · 0 comments
Open

event->msg_id always 0 in MQTT_EVENT_DATA #155

lukunnr opened this issue Sep 10, 2018 · 0 comments

Comments

@lukunnr
Copy link

lukunnr commented Sep 10, 2018

I hava subscribe a topic use esp_mqtt_client_subscribe and return msg_id is 30233 , but when i usr other mqtt client send msg to dut , dut recv data is OK from MQTT_EVENT_DATA , but print event->msg_id always 0;
case MQTT_EVENT_DATA:
ESP_LOGI(TAG, "MQTT_EVENT_DATA");
printf("TOPIC=%.*s\r\n", event->topic_len, event->topic);
printf("DATA=%.*s\r\n", event->data_len, event->data);
printf("msgid=%d\n",event->msg_id); // <<<<<< here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant