File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,11 @@ This mode use google tts & speech recognition. Make sure the device has it. This
147147
148148
149149#
150- # OTHERS AT COMMANDS
151- CHANGE THE SSID, PIN of the BT MODULE for hc05/06
150+ # OTHERS
151+ AT COMMANDS
152+
153+ FOR TESTING, CHANGING THE SSID & PIN of the BT MODULE for hc05/06
154+
152155TEST
153156 Communications test
154157 “AT”
@@ -209,39 +212,31 @@ SoftwareSerial BTserial(2, 3); // BT_TX | BT_RX
209212void setup()
210213
211214{
212-
213215 Serial.begin(9600);
214216
215217 Serial.println("Enter AT commands:");
216218
217219 // HC-06 default serial speed is 9600
218220
219- BTserial.begin(9600);
220-
221+ BTserial.begin(9600);
221222}
222223
223224void loop()
224225
225226{
226-
227227 // Keep reading from HC-06 and send to Arduino Serial Monitor
228228
229229 if (BTserial.available())
230-
231230 {
232-
233231 Serial.write(BTserial.read());
234-
235232 }
236233
237234 // Keep reading from Arduino Serial Monitor and send to HC-06
238235
239236 if (Serial.available())
240237
241238 {
242-
243- BTserial.write(Serial.read());
244-
239+ BTserial.write(Serial.read());
245240 }
246241
247242}
You can’t perform that action at this time.
0 commit comments