summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-17 14:00:39 +0200
committerHampusM <hampus@hampusmat.com>2022-05-17 14:02:42 +0200
commit4c40c538af66570cc4a5a0f0b956afa98f9876db (patch)
tree36a835ce4ecfd40cbd5394bb00ecfe5d8a2d1496
parent287e2f98ee2418305d1377183a1792d6f46dbee9 (diff)
feat(minion): respond with JSON
-rw-r--r--minion/src/gymnasiearbete.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/minion/src/gymnasiearbete.cpp b/minion/src/gymnasiearbete.cpp
index 401722c..d4cdaee 100644
--- a/minion/src/gymnasiearbete.cpp
+++ b/minion/src/gymnasiearbete.cpp
@@ -143,7 +143,9 @@ void loop()
snprintf(
response_data,
RESPONSE_DATA_MAX_LENGTH,
- "%u",
+ "{ %s: { %s: %u } }",
+ R"("data")",
+ R"("temperature")",
temperature_sensor.temperature()
);