Hi,
First thanks for sharing your code
I can´t control the switch
I use:
- Arduino Uno
- RF433 transmitter
- Switch VL-C301DR-81
Steps:
- Connect rf433 data on pin 8 VCC on 5v and GND on gnd
- Load the code
- Touch the button of switch 5 seconds (Di sound)
- Send 1 to monitor.
The code:
#include <livolo.h>
Livolo livolo(8);
int incomingByte = 0;
void setup() {
Serial.begin(9600);
Serial.println("init");
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
switch(incomingByte) {
case 49:
livolo.sendButton(6400, 120);
Serial.println("Switching on 1");
break;
}
}
}