Commit 389f91e1 authored by j.hoerdt's avatar j.hoerdt
Browse files

implement date according to schema

parent c4a7adc2
......@@ -68,7 +68,7 @@ class Sensor {
);
add_attribute(body,
"21.T11148/22c62082a4d2d9ae2602",
"[{\"Date\":{\"date\":\"" + rec.get("min(all_measurements.first_msg)").asLocalDate().toString() + "\",\"dateType\":\"first measurement\"}},{\"Date\":{\"date\":\"" + rec.get("max(all_measurements.last_msg)").asLocalDate().toString() + "\",\"dateType\":\"last measurement\"}}]"
"[{\"dateType\":\"Commissioned\", \"date\":" + rec.get("min(all_measurements.first_msg)").asLocalDate().toString() + "},{\"dateType\":\"last message\", \"date\":" + rec.get("max(all_measurements.last_msg)").asLocalDate().toString() + "}]"
);
add_attribute(body,
"21.T11148/709a23220f2c3d64d1e1",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment