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
2 months ago
by
StetterAme77
Browse files
Options
Download
Email Patches
Plain Diff
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
Showing
2 changed files
README.md
+2
-1
README.md
ampel-firmware/mqtt.cpp
+1
-1
ampel-firmware/mqtt.cpp
with
3 additions
and
2 deletions
+3
-2
README.md
+
2
-
1
View file @
584be588
# Additions during and by workgroup of pervasive computing
# Additions by pervasive computing workgroup
## Time Tracking
## Time Tracking
...
...
This diff is collapsed.
Click to expand it.
ampel-firmware/mqtt.cpp
+
1
-
1
View file @
584be588
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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