hi can someone help with my code
i using this code to turn on my aircon
with virtual pin 14 i have to press the button twice for it to work
how can i make the command send it twice with one push of the button
BLYNK_WRITE(V14){ // AIRCON ON HEAT 30c
int onoff = param.asInt();
if(onoff == 1){
#if SEND_PANASONIC_AC
Serial.println("Sending IR command to A/C ...");
ac.send();
ac.setModel(kPanasonicRkr);
ac.on();
ac.setFan(kPanasonicAcFanMin + 2);
ac.setMode(kPanasonicAcHeat);
ac.setTemp(30);
ac.setSwingVertical(kPanasonicAcSwingVMiddle);
ac.setSwingHorizontal(kPanasonicAcSwingHMiddle);
#endif // SEND_PANASONIC_AC
printState();