mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-30 02:38:19 +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 qos qos of publish message
|
||||||
* @param retain ratain flag
|
* @param retain ratain flag
|
||||||
*
|
*
|
||||||
* @return message_id of the subscribe message on success
|
* @return message_id of the publish message (for QoS 0 message_id will always be zero) on success.
|
||||||
* 0 if cannot publish
|
* -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);
|
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