docs: Makes clear that publish API could block

Closes https://github.com/espressif/esp-idf/issues/5077
This commit is contained in:
David Cermak committed 2020-04-24 14:26:37 +02:00
1 parent 0c3d306589
commit 615aeae0c2
1 file changed
+3
+3
View File
@@ -282,6 +282,9 @@ int esp_mqtt_client_unsubscribe(esp_mqtt_client_handle_t client, const char *top
* @brief Client to send a publish message to the broker
*
* Notes:
* - This API might block for several seconds, either due to network timeout (10s)
* or if publishing payloads longer than internal buffer (due to message
* fragmentation)
* - Client doesn't have to be connected to send publish message
* (although it would drop all qos=0 messages, qos>1 messages would be enqueued)
* - It is thread safe, please refer to `esp_mqtt_client_subscribe` for details