<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    in the
    <a class="moz-txt-link-freetext" href="http://homepages.ius.edu/rwisman/C490/html/PythonandBluetooth.htm">http://homepages.ius.edu/rwisman/C490/html/PythonandBluetooth.htm</a><br>
    <p><b>Discovery</b></p>
    <blockquote>
      <p>The address and name of enabled devices within range can be
        discovered by other Bluetooth devices. Discovery can take some
        time to complete, given that radio communications is unreliable.
        The following displays address and name of all enabled devices
        nearby. </p>
      <blockquote>
        <table style="border-collapse: collapse" id="AutoNumber4"
          bgcolor="#FFFF66" border="1" bordercolor="#111111"
          cellpadding="4" cellspacing="0">
          <tbody>
            <tr>
              <td>from bluetooth import *<br>
                <br>
                print "performing inquiry..."<br>
                <br>
                <b>nearby_devices = discover_devices(lookup_names =
                  True)</b><br>
                <br>
                print "found %d devices" % len(nearby_devices)<br>
                <br>
                for name, addr in nearby_devices:<br>
                     print " %s - %s" % (addr, name)</td>
            </tr>
          </tbody>
        </table>
        <p>performing inquiry...<br>
          found 2 devices<br>
          Ray's Nokia - 00:12:D2:5A:BD:E4<br>
          Ray's MacBook - 00:1E:C2:93:DA:6F</p>
      </blockquote>
    </blockquote>
    <br>
    <br>
    <div class="moz-cite-prefix">On 8/9/2014 4:53 AM, Steven D'Aprano
      wrote:<br>
    </div>
    <blockquote
      cite="mid:53e60ba8$0$29968$c3e8da3$5496439d@news.astraweb.com"
      type="cite">
      <pre wrap="">luofeiyu wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">I want to write a program to help my teacher to take attendence.

There are 300 students in a big room,everyone has android phone.
</pre>
      </blockquote>
      <pre wrap="">
If your students allow strange devices to connect to their android phones,
then they won't remain their android phones for very long. They will belong
to whatever hacker takes control of them first.

<a class="moz-txt-link-freetext" href="http://blog.kaspersky.com/bluetooth-security/">http://blog.kaspersky.com/bluetooth-security/</a>


</pre>
      <blockquote type="cite">
        <pre wrap="">I have matched them with my pc in win7 .
when all of them seated on the classroom,

import bluetooth
nearby_devices = bluetooth.discover_devices(lookup_names = True)
print("found %d devices" % len(nearby_devices))


The function can discover all of them ? 300 bluetooth mac address?
</pre>
      </blockquote>
      <pre wrap="">
You will have to ask the author of the bluetooth module. Where did you find
it? Does it come with documentation? Did you read it?



</pre>
    </blockquote>
    <br>
  </body>
</html>