Closed pkozul closed 5 years ago
Tested on ESP8266 using following code:
#include <RCSwitch.h> RCSwitch mySwitch = RCSwitch(); void setup() { Serial.begin(57600); mySwitch.enableTransmit(4); mySwitch.setProtocol(31); } void loop() { delay(10000); Serial.print(F("Sending ON...")); Serial.println(); mySwitch.setRepeatTransmit(80); mySwitch.send("010011110011"); delay(30000); Serial.print(F("Sending OFF...")); Serial.println(); mySwitch.setRepeatTransmit(10); mySwitch.send("010011110111"); }
Tested on ESP8266 using following code: