nodemecu/Debug/0x01_debug/0x01_debug.ino

26 lines
254 B
Arduino
Raw Normal View History

2022-08-23 21:43:16 +00:00
// Dispositivo
const int devID = 1;
int inQuery;
void setup() {
Serial.begin(9600);
}
void loop() {
if ( Serial.available() > 0) {
inQuery = Serial.read();
if ( inQuery == devID) {
2022-08-24 01:50:52 +00:00
Serial.write("1");
2022-09-06 16:04:41 +00:00
delay(100);
2022-08-23 21:43:16 +00:00
}
}
}