Achronite / energenie-ener314rt

Node module for RaspberryPi energenie ener314-rt board, used by node-red-contrib-energenie-ener314rt
MIT License
4 stars 2 forks source link

Cached commands are sent twice #37

Closed Achronite closed 8 months ago

Achronite commented 9 months ago

The current mechanism for sending outstanding cached commands is built around sending a message out as quickly as possible to the device. It was written in this way to try to cope with the small 'listen' window of the eTRV. Consequently outstanding cached messages are sent to the device every time a message is received from the said device BEFORE any decoding of the message takes place.

This approach, whilst suited to the small Rx window of the eTRV, has a side-effect in that most cached commands are sent twice, the 2nd one being superfluous.