PyBluez doesn'y find a nBlue device
<p>I am trying to connect though Python BlueZ using the Linux Bluetooth stach to a small round nBlue device which works on Bluetooth, but the python program only finds devices like my phone or other laptops. 
What could be a potential problem?</p>

<p>Your python programming is scanning for normal Bluetooth devices. You have to make it scan for BLE devices to see your small round nBlue device.</p>

<p>For example, on my Raspberry Pi 3 with BlueZ installed:</p>

<pre><code>sudo hcitool scan
</code></pre>

<p>sees <em>only</em> 'normal' bluetooth devices like phones, whereas:</p>

<pre><code>sudo hcitool lescan
</code></pre>

<p>sees <em>only</em> BLE Bluetooth devices.</p>

<p>Your python program has to scan specifically for BLE devices. In bluepy this is the <code>Scanner</code> class see <a href="http://ianharvey.github.io/bluepy-doc/scanner.html" rel="nofollow">HERE</a> for docs including this example (haven't run it but looks plausible):</p>

<pre><code>from bluepy.btle import Scanner, DefaultDelegate

class ScanDelegate(DefaultDelegate):
    def __init__(self):
        DefaultDelegate.__init__(self)

    def handleDiscovery(self, dev, isNewDev, isNewData):
        if isNewDev:
            print "Discovered device", dev.addr
        elif isNewData:
            print "Received new data from", dev.addr

scanner = Scanner().withDelegate(ScanDelegate())
devices = scanner.scan(10.0)

for dev in devices:
    print "Device %s (%s), RSSI=%d dB" % (dev.addr, dev.addrType, dev.rssi)
    for (adtype, desc, value) in dev.getScanData():
        print "  %s = %s" % (desc, value)
</code></pre>

python bluetooth iot bluez pybluez