BMDatalogger/BTSerial/BTSerial.ino

20 lines
323 B
Arduino
Raw Normal View History

2017-04-07 00:03:18 -07:00
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX | TX
void setup()
{
Serial.begin(38400);
Serial.println("Enter AT commands:");
BTSerial.begin(38400);
}
void loop()
{
if (BTSerial.available())
Serial.write(BTSerial.read());
if (Serial.available())
BTSerial.write(Serial.read());
}