pub const esp_mqtt_event_id_t_MQTT_EVENT_DATA: esp_mqtt_event_id_t = 6;
Expand description

< data event, additional context:

  • msg_id message id
  • topic pointer to the received topic
  • topic_len length of the topic
  • data pointer to the received data
  • data_len length of the data for this event
  • current_data_offset offset of the current data for this event
  • total_data_len total length of the data received
  • retain retain flag of the message
  • qos QoS level of the message
  • dup dup flag of the message Note: Multiple MQTT_EVENT_DATA could be fired for one message, if it is longer than internal buffer. In that case only first event contains topic pointer and length, other contain data only with current data length and current data offset updating.