diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-17 14:00:39 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-05-17 14:02:42 +0200 |
commit | 4c40c538af66570cc4a5a0f0b956afa98f9876db (patch) | |
tree | 36a835ce4ecfd40cbd5394bb00ecfe5d8a2d1496 /minion/src/gymnasiearbete.cpp | |
parent | 287e2f98ee2418305d1377183a1792d6f46dbee9 (diff) |
feat(minion): respond with JSON
Diffstat (limited to 'minion/src/gymnasiearbete.cpp')
-rw-r--r-- | minion/src/gymnasiearbete.cpp | 4 |
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() ); |