apuntes_Arduino/tests/OK_ESP01/OK_ESP01.ino
jp.av.dev 85bf8bb429 proyectos renombrados, reestructuracion
pendientes crear, indexar y linkear readmes
2022-04-04 01:11:04 -04:00

24 lines
417 B
C++
Executable File

//RX is digital pin 2 (connect to TX of other device)
//TX is digital pin 3 (connect to RX of other device)
#include <SoftwareSerial.h>
const int baudRate = 115200;
SoftwareSerial miESP(2, 3); // RX, TX
void setup() {
Serial.begin(115200);
miESP.begin(115200);
}
void loop() {
if (miESP.available()) {
Serial.write(miESP.read());
}
if (Serial.available()) {
miESP.write(Serial.read());
}
}