Commit 6076716a authored by j.hoerdt's avatar j.hoerdt
Browse files

add Model according to spec and fix quotes

parent 389f91e1
......@@ -68,12 +68,16 @@ class Sensor {
);
add_attribute(body,
"21.T11148/22c62082a4d2d9ae2602",
"[{\"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() + "}]"
"[{\"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",
rec.get("sensor_type").asString()
);
add_attribute(body,
"21.T11148/68c2cc7f0ceaa3e499ec",
"{\"Model\":{\"modelName\":\"" + rec.get("sensor_type").asString() + "\"}}"
);
add_attribute(body,
"21.T11148/9a15a4735d4bda329d80",
"https://sensor.community"
......
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