taligentx / dscKeybusInterface

An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
GNU General Public License v3.0
496 stars 125 forks source link

Streamlined write function to add buffered data input #290

Closed Dilbert66 closed 1 year ago

Dilbert66 commented 2 years ago

Hi Nikhil, i've streamlined the write functions to a be a bit more efficient and more exandable. I've added a circular buffer (about 10 pending events) to allow non-blocking input of keys and request events to occur. I've also combined the alarm/key and module processing into one function that can handle all data types. This cleared a bit of code and simplified things. The system has no problem handling long sequences of keys at once.

Just thought I'd pass it on to you in case this is something that can work for you.

Dilbert66 commented 2 years ago

You can also remove the expander branch as that code is not current anymore. This version supersedes it.

Dilbert66 commented 1 year ago

Closed as code is obsoleted.