Merge branch 'bugfix/mqtt_docs_fix' into 'master'

docs: Updated publish message return code to make it clear that message_id is always 0 for QoS 0

See merge request espressif/esp-mqtt!42
This commit is contained in:
David Čermák
2019-10-03 19:25:47 +08:00

View File

@ -225,8 +225,8 @@ int esp_mqtt_client_unsubscribe(esp_mqtt_client_handle_t client, const char *top
* @param qos qos of publish message
* @param retain ratain flag
*
* @return message_id of the subscribe message on success
* 0 if cannot publish
* @return message_id of the publish message (for QoS 0 message_id will always be zero) on success.
* -1 on failure.
*/
int esp_mqtt_client_publish(esp_mqtt_client_handle_t client, const char *topic, const char *data, int len, int qos, int retain);