removed space

This commit is contained in:
ishak jmilou.ishak
2024-11-13 14:20:14 +01:00
parent c9efba62d4
commit a6b1b3bd1e

View File

@@ -3,7 +3,7 @@
#include <thread> // Voor std::this_thread::sleep_for #include <thread> // Voor std::this_thread::sleep_for
#include <chrono> // Voor std::chrono::seconds #include <chrono> // Voor std::chrono::seconds
const std::string ADDRESS("mqtt:// 10.0.0.1:1883"); // Aanpassen indien nodig const std::string ADDRESS("mqtt://10.0.0.1:1883");
const std::string CLIENT_ID("raspberry_pi_client"); const std::string CLIENT_ID("raspberry_pi_client");
const std::string TOPIC("home/commands"); const std::string TOPIC("home/commands");
@@ -11,7 +11,6 @@ class callback : public virtual mqtt::callback {
void message_arrived(mqtt::const_message_ptr msg) override { void message_arrived(mqtt::const_message_ptr msg) override {
std::cout << "Ontvangen bericht: '" << msg->get_topic() std::cout << "Ontvangen bericht: '" << msg->get_topic()
<< "' : " << msg->to_string() << std::endl; << "' : " << msg->to_string() << std::endl;
// Doe iets met het bericht, bijvoorbeeld een GP.IO-activering
} }
void connection_lost(const std::string& cause) override { void connection_lost(const std::string& cause) override {