Skip to content
Snippets Groups Projects
Verified Commit 8c84b0c1 authored by Zoe Michaela Dietmar Pfister's avatar Zoe Michaela Dietmar Pfister :gay_pride_flag:
Browse files

WIP: minor naming changes

parent 48450e70
No related branches found
No related tags found
3 merge requests!39Merge Develop into Main,!25Minor additions to host,!24Refactor of Host ESP32
...@@ -152,9 +152,9 @@ String documentToServerReadableString(const DynamicJsonDocument &doc) { ...@@ -152,9 +152,9 @@ String documentToServerReadableString(const DynamicJsonDocument &doc) {
serverDoc["host"] = hostMacAddressString; serverDoc["host"] = hostMacAddressString;
serverDoc["client"] = doc["clientMac"].as<String>(); serverDoc["client"] = doc["clientMac"].as<String>();
serverDoc["sensor-protocol"] = doc["protocol"].as<String>(); serverDoc["sensorProtocol"] = doc["protocol"].as<String>();
serverDoc["protocol-address"] = doc["channel"].as<String>(); serverDoc["protocolAddress"] = doc["channel"].as<String>();
serverDoc["hardware-name"] = doc["sensorName"].as<String>(); serverDoc["hardwareName"] = doc["sensorName"].as<String>();
// each value is a element in the readigs array // each value is a element in the readigs array
JsonArray readings = serverDoc.createNestedArray("readings"); JsonArray readings = serverDoc.createNestedArray("readings");
JsonObject reading = readings.createNestedObject(); JsonObject reading = readings.createNestedObject();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment