BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Notification when i press button on 433 remote : i use Nodemcu 8266 + sos button RC-SWITCH


#1

hi
i have a problem to adapt the code
when i press the button on the remote i need to recieve a push notification

actualy i use it in serial monitor and can see the address of the transmitter button on it
but need to receve it on my smartphone

this is the arduino code

thanks for your help


https://github.com/sui77/rc-switch/
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2
}

void loop() {
if (mySwitch.available()) {

Serial.print("Received ");
Serial.print( mySwitch.getReceivedValue() );
Serial.print(" / ");
Serial.print( mySwitch.getReceivedBitlength() );
Serial.print("bit ");
Serial.print("Protocol: ");
Serial.println( mySwitch.getReceivedProtocol() );

mySwitch.resetAvailable();

}
}


#2

Can’t really see how this is Blynk related!? For general coding questions, http://forum.arduino.cc/ might be a better place for you.

And G**gle as always :slight_smile: