GCC Code Coverage Report


Directory: src/
File: src/main.cpp
Date: 2026-03-27 13:31:42
Exec Total Coverage
Lines: 0 3 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #include <iostream>
2
3 #ifdef BUILD_WITH_MQTT
4 #include "mqtt_handler.h"
5 #endif
6 #include "signal_wait.h"
7
8 int main(int, char **)
9 {
10
11 #ifdef BUILD_WITH_MQTT
12 signal_wait::setup_signals();
13
14 mqtt_handler mh = mqtt_handler();
15 mh.connect();
16
17 signal_wait::wait_for_signal();
18
19 mh.disconnect();
20 #else
21 std::cerr << "backend_device_gateway started without mqtt." << std::endl;
22 #endif
23 return 0;
24 }
25