Commit 584be588 authored by StetterAme77's avatar StetterAme77
Browse files

Config.h testing and connection to MQTT Server

parent 771c266c
Pipeline #11052 passed with stage
in 1 minute and 53 seconds
Showing with 3 additions and 2 deletions
+3 -2
# Additions during and by workgroup of pervasive computing # Additions by pervasive computing workgroup
## Time Tracking ## Time Tracking
......
...@@ -39,7 +39,7 @@ namespace mqtt { ...@@ -39,7 +39,7 @@ namespace mqtt {
void initialize(const char *sensorId) { void initialize(const char *sensorId) {
json_sensor_format = PSTR("{\"time\":\"%s\", \"co2\":%d, \"temp\":%.1f, \"rh\":%.1f}"); 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) { if (config::mqtt_encryption) {
// The sensor doesn't check the fingerprint of the MQTT broker, because otherwise this fingerprint should be updated // The sensor doesn't check the fingerprint of the MQTT broker, because otherwise this fingerprint should be updated
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment