Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
omarhogni committed Jul 14, 2023
1 parent e52ec19 commit 704cb56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions exes/mqtt-broadcaster/inc/mqtt_broadcaster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<async_mqtt::v5::connack_packet>();
Expand Down
9 changes: 4 additions & 5 deletions exes/mqtt-broadcaster/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <async_mqtt/all.hpp>
#include <boost/program_options.hpp>
#include <tfc/ipc.hpp>
#include "mqtt_broadcaster.hpp"
#include "config.hpp"
#include <tfc/confman.hpp>
#include <tfc/confman/observable.hpp>
#include <tfc/ipc.hpp>
#include "config.hpp"
#include "mqtt_broadcaster.hpp"

auto main(int argc, char* argv[]) -> int {
auto program_description{ tfc::base::default_description() };
Expand All @@ -13,8 +13,7 @@ auto main(int argc, char* argv[]) -> int {

asio::io_context io_ctx{};

const mqtt_broadcaster<tfc::ipc_ruler::ipc_manager_client, config, tfc::confman::config>
application(io_ctx);
const mqtt_broadcaster<tfc::ipc_ruler::ipc_manager_client, config, tfc::confman::config> application(io_ctx);

io_ctx.run();

Expand Down
4 changes: 2 additions & 2 deletions exes/mqtt-broadcaster/src/sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 704cb56

Please sign in to comment.