mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-31 03:08:03 +02:00
Merge branch 'fix/account_for_failure_in_make_publish' into 'master'
fix: Error on publish message creation was ignored. See merge request espressif/esp-mqtt!185
This commit is contained in:
@ -1976,6 +1976,9 @@ static inline int mqtt_client_enqueue_publish(esp_mqtt_client_handle_t client, c
|
|||||||
int len, int qos, int retain, bool store)
|
int len, int qos, int retain, bool store)
|
||||||
{
|
{
|
||||||
int pending_msg_id = make_publish(client, topic, data, len, qos, retain);
|
int pending_msg_id = make_publish(client, topic, data, len, qos, retain);
|
||||||
|
if (pending_msg_id < 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
/* We have to set as pending all the qos>0 messages */
|
/* We have to set as pending all the qos>0 messages */
|
||||||
//TODO: client->mqtt_state.outbound_message = publish_msg;
|
//TODO: client->mqtt_state.outbound_message = publish_msg;
|
||||||
if (qos > 0 || store) {
|
if (qos > 0 || store) {
|
||||||
|
Reference in New Issue
Block a user