snippets/ev3/bluetooth_client/client: use name instead of address

We no longer have to use the Bluetooth address.
This commit is contained in:
David Lechner
2020-02-12 15:50:21 -06:00
parent a18ba6499c
commit 7bc9ef5acf
+2 -3
View File
@@ -6,9 +6,8 @@
from pybricks.messaging import BluetoothMailboxClient, TextMailbox
# Replace this with the Bluetooth address of the server. This address can be
# found on the screen of the client EV3 after pairing with the server.
SERVER = '00:17:E7:XX:XX:XX'
# This is the name of the remote EV3 we are connecting to.
SERVER = 'ev3dev'
client = BluetoothMailboxClient()
mbox = TextMailbox('mbox', client)