While trying to generate a script in which I change channels dynamically depending on input, I encountered that I am able to send one signal but after the first one it doesn't anymore. I tried multiple ways to fix it but it just won't. Help, please. Do I have to end transmission somehow?. Apologies, I am a first timer.
if(Serial.available()>0){
input = Serial.parseInt();
if(input == 5){
count = number5[0];
for(int i = 1; i < repetitions; i++) {
sender.sendRaw(number5, count, 40);
Serial.print("This is output" + number5[i]);
delay(50);
}
}
}
Thank you in advance.
hi JuanCarpinteiro, you need to explain a little better what you have, and what you try to do...so them any in the forum could help you.
Hello,
Thank you for helping out.
I wanted to send signals dynamically to a receiver, sort of a demo that it changes channels on it own. and I was having problems with the loop because it was sending a signal and halting( this is what I thought) after revising the protocols and my program I realized that I was sending the repetitions as a frequency, therefore, it was sending the code many many times and I just needed it to send it once. I have corrected this issue by adjusting my loop and the elements it sends and how many times it does.
Thank you again.
ok ok.. so we can call this post [RESOLVED] ?