I teach instrumentation and I have 40 students who purchased the Circuit Playground Bluefruit. Today we went over how to use Bluetooth and on the Bluetooth Connect app and there were 40 CIRCUITPYxxxx devices that the students could connect to.
Each Bluefruit has a unique 4 digit code. For example my Bluefruit is CIRCUITPYf8e8 and I know that because I turned my Bluefruit on first and saw it pop op. Once the other 40 students tried to activate bluetooth though they didn't know which 4 digit code was theirs.
Is there anyway to know what the 4 digit code is for each student outside of having them separate by 30 feet or walk outside the classroom one at a time?
Bluefruit in the Classroom
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Bluefruit in the Classroom
This seems to work. In the REPL:
For my board that returns 'CIRCUITPY34e7' which looks like what you're lookign for.
Dave
Code: Select all
from adafruit_ble import BLERadio
ble = BLERadio()
ble.name
Dave
- randomhacksdrc
- Posts: 41
- Joined: Thu Feb 11, 2016 11:51 am
Re: Bluefruit in the Classroom
Worked perfectly. Added it to my tutorial. Thanks again.
https://tangibles-that-teach.gitbook.io ... t-cpb-only
https://tangibles-that-teach.gitbook.io ... t-cpb-only
- kattni
- Posts: 132
- Joined: Fri Aug 18, 2017 6:33 pm
Re: Bluefruit in the Classroom
I have added this to one of our Learn guides as well. Thank you for asking!
https://learn.adafruit.com/circuitpytho ... ect-basics
https://learn.adafruit.com/circuitpytho ... ect-basics
Please be positive and constructive with your questions and comments.