mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
changed address of broker
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include <iostream>
|
||||
#include <mqtt/async_client.h>
|
||||
|
||||
const std::string ADDRESS("ssl://ishak.ishakpi.ddns.net:1883");
|
||||
const std::string ADDRESS("tcp://localhost:1883");
|
||||
const std::string CLIENT_ID("raspberry_pi_client");
|
||||
const std::string TOPIC("home/commands");
|
||||
|
||||
class callback : public virtual mqtt::callback {
|
||||
void message_arrived(mqtt::const_message_ptr msg) override {
|
||||
std::cout << "Ontvangen bericht: '" << msg->get_topic() << "' : " << msg->to_string() << std::endl;
|
||||
// Doe iets met het bericht, bijvoorbeeld een GPIO-activering
|
||||
// Doe iets met het bericht, bijvoorbeeld een GP.IO-activering
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user