mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 12:24:57 +00:00
removed space
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user