From 6fc998b718c30e123fed719a82f7c41b5f11f7df Mon Sep 17 00:00:00 2001 From: beni Date: Wed, 5 Oct 2022 15:30:43 +0200 Subject: [PATCH] Added "AT BC $NAME xx" to set the name of the BLE module --- .../Fabrication/rp2040_preparation/rp2040_preparation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/Fabrication/rp2040_preparation/rp2040_preparation.py b/Documentation/Fabrication/rp2040_preparation/rp2040_preparation.py index 6bd6542..2bbf07a 100644 --- a/Documentation/Fabrication/rp2040_preparation/rp2040_preparation.py +++ b/Documentation/Fabrication/rp2040_preparation/rp2040_preparation.py @@ -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())