Commit c4a7adc2 authored by j.hoerdt's avatar j.hoerdt
Browse files

implement Owners property validly

parent 2d236977
...@@ -74,9 +74,14 @@ class Sensor { ...@@ -74,9 +74,14 @@ class Sensor {
"21.T11148/709a23220f2c3d64d1e1", "21.T11148/709a23220f2c3d64d1e1",
rec.get("sensor_type").asString() rec.get("sensor_type").asString()
); );
add_attribute(body, "21.T11148/9a15a4735d4bda329d80", add_attribute(body,
"21.T11148/9a15a4735d4bda329d80",
"https://sensor.community" "https://sensor.community"
); );
add_attribute(body,
"21.T11148/4eaec4bc0f1df68ab2a7",
"{\"Owners\":[{\"Owner\":{\"ownerName\":\"SensorCommunity\",\"ownerContact\":\"contact@open-forecast.eu\"}}]}"
);
Main.glogger.fine("sent body: " + body); Main.glogger.fine("sent body: " + body);
HttpRequest request = HttpRequest.newBuilder(URI.create(Main.pid_registry_uri + target_uri)) HttpRequest request = HttpRequest.newBuilder(URI.create(Main.pid_registry_uri + target_uri))
......
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