OpenZWave / open-zwave

a C++ library to control Z-Wave Networks via a USB Z-Wave Controller.
http://www.openzwave.net/
GNU Lesser General Public License v3.0
1.05k stars 918 forks source link

make MAX_TRIES configurable #2469

Open matejdro opened 3 years ago

matejdro commented 3 years ago

I've been experiencing issues with my Z-wave network: Every once in a while, a message will randomly timeout, most often when sending multiple messages at a time (https://groups.google.com/g/openzwave/c/Jcw-wn2i4FI).

I've not been able to find root cause of the issue, so as a workaround, I have shortened the timeout. This solved the "network freezing for 10 seconds" issue, but the problem is that dropped message could leave my system in inconsistent state. So I've also decided to enable retries.

Unfortunately, there has been no config option for retries until now. Option has only been hardcoded. This PR fixes this.