mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-29 18:28:24 +02:00
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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user