nodemecu/Debug/0x02_debug/0x02_debug.ino
2022-08-23 22:50:52 -03:00

25 lines
241 B
C++

// Dispositivo
const int devID = 2;
int inQuery;
void setup() {
Serial.begin(9600);
}
void loop() {
if ( Serial.available() > 0) {
inQuery = Serial.read();
if ( inQuery == devID) {
Serial.write("2");
}
}
}