Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not send via rcswitch #154

Open
gerashk opened this issue May 10, 2024 · 0 comments
Open

not send via rcswitch #154

gerashk opened this issue May 10, 2024 · 0 comments

Comments

@gerashk
Copy link

gerashk commented May 10, 2024

`CC1101recivepin = 4; CC1101sendPin = 5;// for esp8266! Receiver on pin 4 = D2.

if (ELECHOUSE_cc1101.getCC1101()){ // Check the CC1101 Spi connection.
Serial.println("Connection OK ");
}else{
Serial.println("Connection Error");
//WebSerial.println("Connection Error");
}

//CC1101 Settings: (Settings with "//" are optional!)
ELECHOUSE_cc1101.Init(); // must be set to initialize the cc1101!
ELECHOUSE_cc1101.setMHZ(433.92); //The cc1101 can: 300-348 MHZ, 387-464MHZ and 779-928MHZ.
ELECHOUSE_cc1101.setModulation(2); // set modulation mode. 0 = 2-FSK, 1 = GFSK, 2 = ASK/OOK, 3 = 4-FSK, 4 = MSK.ELECHOUSE_cc1101.setModulation(0); // set modulation mode. 0 = 2-FSK, 1 = GFSK, 2 = ASK/OOK, 3 = 4-FSK, 4 = MSK.
mySwitch.enableTransmit(CC1101sendPin);
ELECHOUSE_cc1101.SetTx();
}

void loop() {

Serial.print("Send ");
Serial.println("3985, 12");
mySwitch.send(3985, 12);
delay(5000);

}`

I can’t understand why nothing is sent. everything works at the reception. The LED blinks when sending. but it doesn't send anything. I check with 2 devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant