diff --git a/host/host_central_mast/src/main.cpp b/host/host_central_mast/src/main.cpp index 376579e3ccb6ed5320878b5d51aa518fd54c0279..cb62f775968d6a7abc9fe0d5a83947f20494ffc0 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();