Skip to content

Commit

Permalink
Added "AT BC $NAME xx" to set the name of the BLE module
Browse files Browse the repository at this point in the history
  • Loading branch information
beni committed Oct 5, 2022
1 parent a7c7323 commit 6fc998b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ def error(msg):
exit
else:
time.sleep(0.5)
#set device name depending on selected module
ser.write(str("AT BC $NAME "+devices[current_device] + "\r\n").encode())
print(ser.readline().decode())
retry = 0
while 1:
ser.write(str("AT BC $ID\r\n").encode())
Expand Down

0 comments on commit 6fc998b

Please sign in to comment.