forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[coolmasternet] Fix buffer handling (openhab#7505)
A more detailed discussion is in the bug report, but in summary: * Gracefully handle unsolicited socket opening prompt * Sink existing socket buffers in a deterministic manner * Prevent socket close due to try-with-resources cleanup * Send LF (nor CRLF) as per CoolMasterNet PRM [1] Tested locally including monitoring air conditioner state changes (using the manual control panel and also the CoolRemote mobile application) and sending commands (ie power, fan speed, mode, set temperature). [1] https://coolautomation.com/wp-content/uploads/sites/2/2019/11/CMN5-PRM.pdf Signed-off-by: Ben Alex <[email protected]>
- Loading branch information
1 parent
d7a3c1c
commit 5f688a8
Showing
1 changed file
with
52 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters