Legion2 / Somfy_Remote_Lib

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

Add rolling code parameter to sendCommand method #28

Closed Mirdinus closed 12 months ago

Mirdinus commented 12 months 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 12 months 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