Closed jonasgreen88 closed 7 years ago
If a Modbus request fails (e.g. timed out) and it has a callback to be processed upon receiving a response the node will stop working because the data variable is undefined in this case.
We could probably get away with just:
if (data) {
Rather than
if (typeof data !== 'undefined') {
But that looks good.
If a Modbus request fails (e.g. timed out) and it has a callback to be processed upon receiving a response the node will stop working because the data variable is undefined in this case.