sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.89k stars 651 forks source link

Fast Forward to 2024 - included the changes from in the Tasmota Branch & added platformio support #496

Open hvegh opened 5 months ago

hvegh commented 5 months ago

In cooperated the changes from the Tasmota/development branch, tested by the Tasmota community:

commit 423945233ca58da0fc0618e9c13118f99e10ee66
Author: Theo Arends <11044339+arendst@users.noreply.github.com>
Date:   Fri Dec 9 17:35:57 2022 +0100
    Fix RFrecv exceptions 0 and/or 6 (#17285)

commit ac187d6829555f9a4e76df24b7b6d5e874e36ae7
Author: Anton <35825286+anton-v-a@users.noreply.github.com>
Date:   Mon Nov 28 00:56:22 2022 -0500
    Adding RF protocol for DEWENWILS Power Strips and Power stakes

commit b2adcdcee5c124440e1b4d7a6b4fab33df99dac4
Author: Anton <35825286+anton-v-a@users.noreply.github.com>
Date:   Sat Nov 19 01:56:17 2022 -0500
    Adding protocol for DOOYA 2700AC remote
    Adding protocol for DOOYA 2700AC remote (used with DT82TV curtain motors)
    This remote uses 40-bit code
    PR #17139 is needed to support it in decimal format of RfSend command (JSON format works as is)

commit bd4b2b58d2fd091215953c40d11c2cfe146f300a
Author: Jason2866 <24528715+Jason2866@users.noreply.github.com>
Date:   Thu Jan 13 18:26:25 2022 +0100
    RCSWITCH_SEPARATION_LIMIT 4100

commit 924ca0d30cf934e3932cce1885c5da7029d2fe90
Author: Jason2866 <24528715+Jason2866@users.noreply.github.com>
Date:   Thu Jan 13 18:24:31 2022 +0100
    Update RCSwitch.cpp

commit 4a0788f33c3c4a5b3b249ad873a8e5584fc8df10
Author: Jason2866 <24528715+Jason2866@users.noreply.github.com>
Date:   Tue Sep 7 17:44:02 2021 +0200
    Improve documentation of protocol format

commit 80ab642076241655dfcfc1c3551eef240ece0290
Author: Theo Arends <11044339+arendst@users.noreply.github.com>
Date:   Sun Dec 6 14:58:00 2020 +0100
    Add command ``RfProtocol`` to control RcSwitch
    Add command ``RfProtocol`` to control RcSwitch receive protocols by BBBits (#10063)

commit c62c6a821a60556606ce8865ecd1a3ece71040c8
Author: BBBits <bazza@bbbits.com>
Date:   Sun Dec 6 00:13:24 2020 +1300
    Remove BAZMOD tags

commit 7d19e9b0e292d3fbb32113203cee4d10ea8608a2
Author: BBBits <bazza@bbbits.com>
Date:   Sat Dec 5 23:51:57 2020 +1300
    RC-Switch Protocol Disable via Console

commit 386303dbe742584a5f1f22ab0fd4c7b1ffeed8fe
Author: Josef Reisinger <cooljavajoe@aol.com>
Date:   Sun Nov 29 15:29:13 2020 +0100
   Added protocoll for Dooya 1603 5 channel remote

Added platformio support and tested the examples (except for the Webserver). Added targets for lonin32 and esp32c3_cdc.

Additional targets for the examples can be created in _platformioshared.ini just add your implementation:

[env:<target>]
platform        = <platform>
board           = <board>
upload_protocol = <tool>
framework       = ${common.framework}
lib_deps        = ${common.lib_deps}
monitor_speed   = ${common.monitor_speed}
build_flags     =
        ${common.build_flags}
        -D RCSWITCH_RECIEVE_PIN=<pin>
        -D RCSWITCH_TRANSMIT_PIN=<pin>