After some research, this seems not possible and/or not practical.
1. The MAC #'s of the BT devices are not consistently available. On iOS not at all.
2. Many students come with their laptops, which may or may not have BT.
3. Privacy concerns would make some students uneasy.
I looked at alternative approaches to attendance taking.
Some are ingenious, such as face recognition, QR codes, web-based systems.
All can be circumvented by clever students.
That of course was always the case, even with manual systems. Someone can represent themselves and a buddy who is absent.
But this can be made more difficult, without adding distractions from the educational aims of the class.
For example, if the student arrives at the class room, they will see a one-time opening code for that location and time at the front of the class.
They can send a SMS text of that to a receiver which logs the sender, time, and code.
When the class is finished, another one time closing code for that location and time is displayed at the front of the class
If attendance is important to the student, they will send a SMS text of that code.
The students are registered with their phone numbers, so the source of the texts is known.
If someone wants to cheat they give their phone to their buddy to do the texting for them.
Others may have other ideas. I am interested in hearing them.