Legion2 / Somfy_Remote_Lib

Emulate a Somfy remote using a 433.42 MHz transmitter.
Apache License 2.0
131 stars 17 forks source link

Add rolling code parameter to sendCommand method #28

Closed Mirdinus closed 1 year ago

Mirdinus commented 1 year ago

Hi, I have added rolling code to the sendCommand method to allow external storage of rolling codes.

I had a problem with NVS on ESP32C3 and decided to keep the rolling codes "offloaded". This approach allows users to use this library on bridge type of devices where there is no need to keep state of the controlled shutters.

Mirdinus commented 1 year ago

Too many default values might result into breaking changes. This line results in the method overload forcing exact naming. I'll add separate function for this functionality in separate PR to not pollute the codebase with unnecessary commits