Commit 9c4867a9 authored by neop's avatar neop
Browse files

implement SchemaVersion of PID

parent 14036bab
......@@ -145,12 +145,14 @@ class Sensor {
'\"' + rec.get("type.classification").asString() + '\"'
);
}
add_attribute(body,
"12",
"21.T11148/f5e68cc7718a6af2a96c",
"{\"SchemaVersion\":\"1.0b1\"}"
);
Main.glogger.fine("sent body: " + body);
Request request = new Request.Builder()
.url(Main.config.getProperty("pid_registry_uri") + target_uri)
.method(method, RequestBody.create(body.toString(), MediaType.parse("application/json")))
......
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