Control Livolo switches / Livolo switch library

Hi,

First thanks for sharing your code :slight_smile:

I can´t control the switch :frowning:

I use:

  1. Arduino Uno
  2. RF433 transmitter
  3. Switch VL-C301DR-81

Steps:

  1. Connect rf433 data on pin 8 VCC on 5v and GND on gnd
  2. Load the code
  3. Touch the button of switch 5 seconds (Di sound)
  4. 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;
        }
   }
}