diff --git a/exes/mqtt-broadcaster/inc/mqtt_broadcaster.hpp b/exes/mqtt-broadcaster/inc/mqtt_broadcaster.hpp index e5067ccb19..b903a20fd1 100644 --- a/exes/mqtt-broadcaster/inc/mqtt_broadcaster.hpp +++ b/exes/mqtt-broadcaster/inc/mqtt_broadcaster.hpp @@ -148,8 +148,8 @@ class mqtt_broadcaster { co_await mqtt_client_->send(connect_packet, asio::use_awaitable); logger_.trace("Waiting for MQTT connection acknowledgement"); - auto connack_received = co_await mqtt_client_->recv(async_mqtt::filter::match, { async_mqtt::control_packet_type::connack }, - asio::use_awaitable); + auto connack_received = co_await mqtt_client_->recv( + async_mqtt::filter::match, { async_mqtt::control_packet_type::connack }, asio::use_awaitable); // TODO: check for valid connack auto connack_packet = connack_received.template get(); diff --git a/exes/mqtt-broadcaster/src/main.cpp b/exes/mqtt-broadcaster/src/main.cpp index f09b883b3c..8565a928de 100644 --- a/exes/mqtt-broadcaster/src/main.cpp +++ b/exes/mqtt-broadcaster/src/main.cpp @@ -1,10 +1,10 @@ #include #include -#include -#include "mqtt_broadcaster.hpp" -#include "config.hpp" #include #include +#include +#include "config.hpp" +#include "mqtt_broadcaster.hpp" auto main(int argc, char* argv[]) -> int { auto program_description{ tfc::base::default_description() }; @@ -13,8 +13,7 @@ auto main(int argc, char* argv[]) -> int { asio::io_context io_ctx{}; - const mqtt_broadcaster - application(io_ctx); + const mqtt_broadcaster application(io_ctx); io_ctx.run(); diff --git a/exes/mqtt-broadcaster/src/sample.cpp b/exes/mqtt-broadcaster/src/sample.cpp index 1385a3ecdc..6bc9af0d08 100644 --- a/exes/mqtt-broadcaster/src/sample.cpp +++ b/exes/mqtt-broadcaster/src/sample.cpp @@ -70,8 +70,8 @@ struct app { // Send MQTT CONNECT yield amep.send( async_mqtt::v3_1_1::connect_packet{ - true, // clean_session - 0x1234, // keep_alive + true, // clean_session + 0x1234, // keep_alive async_mqtt::allocate_buffer("cid1"), async_mqtt::nullopt, // will async_mqtt::nullopt, // username set like am::allocate_buffer("user1"),