UserModule Get config
Posted: 03 Aug 2015 10:03
Hello.
Now I am inside the event handler for a change:metrics:level and i need to to fetch some configuration from the module.json file.
will fetch the object serverip from module.json so no problem with that, but i have some config that is only for this device. How could i fetch that?
The information i need is actual in config.devices.tagname but i need to tell the code what device i am trying to fetch from.
When i create the event listener then i loop the config
Now I am inside the event handler for a change:metrics:level and i need to to fetch some configuration from the module.json file.
Code: Select all
self.config.serverip
The information i need is actual in config.devices.tagname but i need to tell the code what device i am trying to fetch from.
When i create the event listener then i loop the config
Code: Select all
self.config.devices.forEach