Skip to content

event->msg_id always 0 in MQTT_EVENT_DATA #155

@lukunnr

Description

@lukunnr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions