From 584be588be827b7556ce174da91e406679a4d75b Mon Sep 17 00:00:00 2001 From: StetterAme77 Date: Thu, 10 Apr 2025 09:43:46 +0200 Subject: [PATCH] Config.h testing and connection to MQTT Server --- README.md | 3 ++- ampel-firmware/mqtt.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e174a29..84165e4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Additions during and by workgroup of pervasive computing +# Additions by pervasive computing workgroup + ## Time Tracking diff --git a/ampel-firmware/mqtt.cpp b/ampel-firmware/mqtt.cpp index ddb1084..80a7f5b 100644 --- a/ampel-firmware/mqtt.cpp +++ b/ampel-firmware/mqtt.cpp @@ -39,7 +39,7 @@ namespace mqtt { void initialize(const char *sensorId) { json_sensor_format = PSTR("{\"time\":\"%s\", \"co2\":%d, \"temp\":%.1f, \"rh\":%.1f}"); - snprintf(publish_topic, sizeof(publish_topic), "%s%s", config::mqtt_topic_prefix, sensorId); + snprintf(publish_topic, sizeof(publish_topic), "%s%s", config::mqtt_topic_prefix, sensorId); //TODO if (config::mqtt_encryption) { // The sensor doesn't check the fingerprint of the MQTT broker, because otherwise this fingerprint should be updated -- GitLab