TA2k / ioBroker.fronius-solarweb

Adapter for ioBroker Fronius Solarweb
MIT License
4 stars 4 forks source link

SendMessage inMessage blocked while the adapter fetches data #6

Open Coalado opened 1 year ago

Coalado commented 1 year ago

usually, sendMessage onMessage takes a few ms to send a message, and deliver a response. If the adapter is enabled, I get timeouts in the exact same interval the adapter updates data. It seems like the adapter does some processing that blocks for ~5000-6000ms and no messages can be delivered while updateDevices is called. (Maybe due to the await in the code?")

How can this issue be solved?