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