Open candaj2 opened 9 months ago
Hello, Can someone have any idea about that
Yes, please share a small code sample with the problem.
I can't reproduce this in the latest development branches ('v1.4.x' and 'develop').
I modified the read loop in the async_consumer_v5
sample app as follows:
while (true) {
mqtt::const_message_ptr msg;
if (!cli.try_consume_message(&msg)) {
this_thread::sleep_for(100ms);
continue;
}
if (!msg)
break;
cout << msg->get_topic() << ": " << msg->to_string() << endl;
}
Works for me.
Hello, I'm having an issue using the try_consume_message(const_message_ptr *msg) method. When executing it's always throwing a "std::system_error" exception. You can find following the stacktrace:
Is there any known issue about that ? I'm in v1.3.2 and can share a code without the boilerplate if needed