Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SoftwareSerial.h>
- SoftwareSerial BTS(10, 11); // RX | TX
- void setup()
- {
- Serial.begin(9600);
- Serial.write("Enter AT commands:");
- BTS.begin(38400); // HC-05 FC-114 default speed in AT command more
- }
- void loop()
- {
- // Read from HC-05 and send it to Arduino Serial Monitor
- if (BTS.available())
- {
- Serial.write(BTS.read());
- }
- // Read from Arduino Serial Monitor and send to HC-05
- if (Serial.available())
- BTS.write(Serial.read());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement