mirror of
https://github.com/eclipse/paho.mqtt.cpp.git
synced 2025-05-10 03:39:07 +08:00
#458 Set disconnected handler for the consumer queue.
This commit is contained in:
parent
3631bce7e0
commit
3e15d873c4
@ -7,6 +7,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
|
||||||
|
## [Version 1.4.1](https://github.com/eclipse/paho.mqtt.cpp/compare/v1.4.0..v1.4.1) - (unreleased)
|
||||||
|
|
||||||
|
- Set 'disconnected' handler for the consumer queue.
|
||||||
|
|
||||||
|
|
||||||
## [Version 1.4.0](https://github.com/eclipse/paho.mqtt.cpp/compare/v1.3.2..v1.4.0) - (2024-06-16)
|
## [Version 1.4.0](https://github.com/eclipse/paho.mqtt.cpp/compare/v1.3.2..v1.4.0) - (2024-06-16)
|
||||||
|
|
||||||
- Ability to build the Paho C library automatically (now working properly)
|
- Ability to build the Paho C library automatically (now working properly)
|
||||||
|
@ -896,8 +896,9 @@ void async_client::start_consuming()
|
|||||||
&async_client::on_message_arrived,
|
&async_client::on_message_arrived,
|
||||||
nullptr);
|
nullptr);
|
||||||
|
|
||||||
if (rc != MQTTASYNC_SUCCESS)
|
check_ret(rc);
|
||||||
throw exception(rc);
|
check_ret(::MQTTAsync_setDisconnected(cli_, this,
|
||||||
|
&async_client::on_disconnected));
|
||||||
}
|
}
|
||||||
|
|
||||||
void async_client::stop_consuming()
|
void async_client::stop_consuming()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user