Circuit Playground Bluefruit BLE Advertising Name

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mkmra2
 
Posts: 36
Joined: Fri Jul 28, 2017 4:06 pm

Circuit Playground Bluefruit BLE Advertising Name

Post by mkmra2 »

Hi,

I'm teaching a class where we have 26 students each with their own CPB. I want to show them how to connect their phone to the CPB using the Connect App. The sample code provided online works extremely well when I connect to my own device. But when I'm in a room with 26 others who are also running code making their devices available over Bluetooth it's impossible to tell which device belongs to whom!

My question is if there is a name a user can assign to their particular CPB's that shows up when it is advertising to be connected. For example, I might like to be "MeierCPB".

I hope that made sense. Thanks in advance.

Mark

User avatar
neradoc
 
Posts: 542
Joined: Wed Apr 27, 2016 2:38 pm

Re: Circuit Playground Bluefruit BLE Advertising Name

Post by neradoc »

Hi, what programming environment are you using ?
If using Circuitython, the default name can not be changed currently (though it would be interesting to change that with .env), but when the user code is using BLE you can change the name it advertises as. This should change the name by which the board is seen externally, but some devices might cache the name of a paired device and require to forget the device before the new name is seen.
For example:

Code: Select all

ble = BLERadio()
ble.name = "My BLE board"

User avatar
mkmra2
 
Posts: 36
Joined: Fri Jul 28, 2017 4:06 pm

Re: Circuit Playground Bluefruit BLE Advertising Name

Post by mkmra2 »

Hi,

Thanks for the reply. We are using CircuitPython 7.3.1 and Mu.

It works nicely. Thanks very much!

Mark

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”