Kura Services OsGI-Inf Metatype xml Editing [message #1770105] |
Tue, 08 August 2017 11:51 |
Erdem Tuna Messages: 9 Registered: August 2017 |
Junior Member |
|
|
Hi,
I've tried to edit value of a key component of the xml file in the metatype with "properties.put" and "properties.replace". However, when I call these functions, related key value is not being edited and relevant web UI in Kura disappears but bundle keeps running. For the sake of example, referring to "org.eclipse.kura.demo.heater", If I want to edit value of the "program.startTime" from the main code by typing properties.replace("program.startTime", "08.00") or properties.put("program.startTime", "08.00") , it doesn't make any effect on the value of the key. However, I can display the value of "program.startTime" by typing properties.get("program.startTime")
The value can obviously be edited through web UI but, I want to ask that is it possible to edit a value of the key that is present in the xml file from the main code?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03163 seconds