Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel2
co2-ampel
Commits
584be588
Commit
584be588
authored
Apr 10, 2025
by
StetterAme77
Browse files
Config.h testing and connection to MQTT Server
parent
771c266c
Pipeline
#11052
passed with stage
in 1 minute and 53 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
584be588
# Additions during and by workgroup of pervasive computing
# Additions by pervasive computing workgroup
## Time Tracking
...
...
ampel-firmware/mqtt.cpp
View file @
584be588
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment