Skip to content

Commit

Permalink
#378 Bad LWT message in async_publish.cpp sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Dec 6, 2023
1 parent 3744db4 commit da7c7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/samples/async_publish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int main(int argc, char* argv[])

auto connOpts = mqtt::connect_options_builder()
.clean_session()
.will(mqtt::message(TOPIC, LWT_PAYLOAD, QOS))
.will(mqtt::message(TOPIC, LWT_PAYLOAD, strlen(LWT_PAYLOAD), QOS, false))
.finalize();

cout << " ...OK" << endl;
Expand Down

0 comments on commit da7c7f5

Please sign in to comment.