Browse Source

at_commands

Nadiia Kotelnikova 4 years ago
parent
commit
f29f36f9d0
1 changed files with 10 additions and 11 deletions
  1. 10 11
      bluetooth/at_commands.py

+ 10 - 11
bluetooth/at_commands.py

@@ -1,3 +1,12 @@
+'''
+pyboard - BT adapter
+X9        RXD
+X10       TXD
+GND       GND
+3V3       KEY
+V+        VCC
+'''
+
 import pyb
 
 led2 = pyb.LED(2)
@@ -5,8 +14,7 @@ led3 = pyb.LED(3)
 
 uart = pyb.UART(3, 38400)
 
-arg = ""
-command = "AT+" + arg + "\r\n"
+command = "AT+ORGL?" + "\r\n"
 
 while True:
     uart.write(command)
@@ -16,12 +24,3 @@ while True:
         break
 
 
-'''
-pyboard - BT adapter
-Y9        RXD
-Y10       TXD
-GND       GND
-3V3       KEY
-V+        VCC
-
-'''