19 lines
344 B
C++
19 lines
344 B
C++
#include <Arduino.h>
|
|
#include <ESP32SoftwareSerial.h>
|
|
|
|
ESP32SoftwareSerial TempSerial(21, 22);
|
|
|
|
void setup()
|
|
{
|
|
// put your setup code here, to run once:
|
|
TempSerial.begin(9600);
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
// put your main code here, to run repeatedly:
|
|
if(TempSerial.available())
|
|
{
|
|
TempSerial.write(TempSerial.read());
|
|
}
|
|
} |