nodemecu/0x03-conductividad/0x03-conductividad.ino

32 lines
337 B
Arduino
Raw Normal View History

2022-08-23 16:15:53 +00:00
// Dispositivo
int devID = 3;
char devIDstr[5];
int inQuery;
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write("\n");
delay(1000);
if ( Serial.available() > 0) {
if ( inQuery == devID) {
Serial.write(itoa(devID, devIDstr, 10));
Serial.write(" ");
Serial.write("Tur");
}
}
}