Hi !!
How i said in the post,i have use the SendDemo example of RcSwitch library,with binary and tristate codes,and sockets works fine.Also i sniff the codes with an arduino nano and a 433 mhz receiver,and serial monitor shows that the codes and the pulse length was perfect.
As i said no matter what value i put in sketch,Blynk always send codes in a pulse length between 350-356 microseconds,instead of 187 microseconds.
Later i will try post the sketch,but i’m beginner,and this is not ease for me yet.
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxx”; //insert here your token generated by Blynk
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, “XXXXXX”, “XXXXXX”); //insert here your SSID and password
Have you tried the latest master branch of the RCSwitch library by sui77? The last official release was just over a year ago but the master branch has 102 commits and some are ESP related.
I think your problem is button assign to send rf act as PUSH than when you press button, button send to hardware 2 values 0 and 1 than rcswitch send 2 times of code in a very short time. inside BLYNK_WRITE maybe you need handle value send from app
I hay tried with push,and other sketches that uses buttons as swtiches,does not matter,the problem is the same.
In mine,every button sends codes twice,but the same code,1 or 0.
Costas:i would like to try my sketch,using two momentary switches, one for (socket1On) and another for (socket1Off),to know where is the problem.If using my sketch driving de RF emitter through the switches,i think ,i can to know if problem,is code or Blynk.
I was trying with this,but when i verify/compile sketch,i take errors,that i don’t know how to fix,because i’m good with hardware,but not with software.
can you help me ???
I will appreciate.Thanks.
Physical switches,because is the only way to know where is the problem.
I have added some lines the code,to use phisycal switches,for socket 1 ON and OFF,trying to emulate the virtual pins of Blynk,but as i said,i’m not good programming.and the sketch not compile good.
That’s is why i need help.