Commit 008646db authored by j.hoerdt's avatar j.hoerdt
Browse files

put first and last date into pid

parent 7885b3e4
......@@ -66,10 +66,10 @@ class Sensor {
"21.T11148/eb3c713572f681e6c4c3",
"[{\"AlternateIdentifier\":{\"AlternateIdentifierValue\":\"" + properties.get("sensor_id") + "\",\"alternateIdentifierType\":\"serialNumber\"}}]"
);
// add_attribute(body,
// "21.T11148/22c62082a4d2d9ae2602",
// "[{\"date\":{\"date\":\"1999-11-01\",\"dateType\":\"Commissioned\"}}]"
// );
add_attribute(body,
"21.T11148/22c62082a4d2d9ae2602",
"[{\"Date\":{\"date\":\"" + rec.get("s.first_msg").asLocalDate().toString() + "\",\"dateType\":\"first measurement\"}},{\"Date\":{\"date\":\"" + rec.get("s.last_msg").asLocalDate().toString() + "\",\"dateType\":\"last measurement\"}}]"
);
add_attribute(body,
"21.T11148/709a23220f2c3d64d1e1",
rec.get("type.sensor_type").asString()
......
Supports Markdown
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