From 8c84b0c162839713482f9b00ee609bf177178e8e Mon Sep 17 00:00:00 2001 From: Zoe Pfister <zoe.pfister@uibk.ac.at> Date: Fri, 20 Jan 2023 10:37:41 +0100 Subject: [PATCH] WIP: minor naming changes --- host/host_central_mast/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/host/host_central_mast/src/main.cpp b/host/host_central_mast/src/main.cpp index 376579e..cb62f77 100644 --- a/host/host_central_mast/src/main.cpp +++ b/host/host_central_mast/src/main.cpp @@ -152,9 +152,9 @@ String documentToServerReadableString(const DynamicJsonDocument &doc) { serverDoc["host"] = hostMacAddressString; serverDoc["client"] = doc["clientMac"].as<String>(); - serverDoc["sensor-protocol"] = doc["protocol"].as<String>(); - serverDoc["protocol-address"] = doc["channel"].as<String>(); - serverDoc["hardware-name"] = doc["sensorName"].as<String>(); + serverDoc["sensorProtocol"] = doc["protocol"].as<String>(); + serverDoc["protocolAddress"] = doc["channel"].as<String>(); + serverDoc["hardwareName"] = doc["sensorName"].as<String>(); // each value is a element in the readigs array JsonArray readings = serverDoc.createNestedArray("readings"); JsonObject reading = readings.createNestedObject(); -- GitLab