mirror of
https://github.com/pybricks/pybricks-projects.git
synced 2026-09-15 11:03:15 +00:00
snippets/ev3/bluetooth_client/client: use name instead of address
We no longer have to use the Bluetooth address.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user