Skip to content

Commit d674d96

Browse files
authored
Update README.md
1 parent 71446b2 commit d674d96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,31 +212,39 @@ SoftwareSerial BTserial(2, 3); // BT_TX | BT_RX
212212
void setup()
213213

214214
{
215+
215216
Serial.begin(9600);
216217

217218
Serial.println("Enter AT commands:");
218219

219220
// HC-06 default serial speed is 9600
220221

221222
BTserial.begin(9600);
223+
222224
}
223225

224226
void loop()
225227

226228
{
229+
227230
// Keep reading from HC-06 and send to Arduino Serial Monitor
228231

229232
if (BTserial.available())
233+
230234
{
235+
231236
Serial.write(BTserial.read());
237+
232238
}
233239

234240
// Keep reading from Arduino Serial Monitor and send to HC-06
235241

236242
if (Serial.available())
237243

238244
{
245+
239246
BTserial.write(Serial.read());
247+
240248
}
241249

242250
}

0 commit comments

Comments
 (0)