Python bluetooth returns nothing (Raspberry PI)
<p>I got the following code: </p>

<pre><code>import bluetooth


def apparaat():
    nearby_devices = bluetooth.discover_devices(lookup_names = True, flush_cache = True, duration = 15)
    for address in nearby_devices:
        print("Gevonden apparaten: " + str(address))
    print("Gevonden apparaten: " + str(nearby_devices))
apparaat()
</code></pre>

<p>When I run the script the out put is:</p>

<pre><code>Gevonden apparaten: []
</code></pre>

<p>When I scan for bluetooth devices on my raspberry PI it returns a couple. What im a missing here?</p>