python bluetooth discover does not show all devices

592
April 02, 2017, at 11:02 AM

I have a problem with my bluetooth smart scale. I can discover it on my android mobile. But when I run this code (in python2 and python3):

import bluetooth
bluetooth.discover_devices()

Then it returns empty list []

Also when I run these commands:

bluetoothctl
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:15:83:4F:32:56 Discovering: yes
[CHG] Device F0:C7:7F:2A:8D:CA RSSI: -83
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Key: 0x0000
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0xf0
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0xc7
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0x7f
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0x2a
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0x8d
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0xca

The scale is discovered. Does anybody have idea, why the pybluez is not able to discover this device?

Thanks!

Rent Charter Buses Company
READ ALSO
scikit-learn feature extraction suggestion

scikit-learn feature extraction suggestion

I have a bunch of texts that are labeled (binary 1/0)right now i used tf-idf vectorization and CountVectorizer

425
How can you read just the first word of every line of file using python?

How can you read just the first word of every line of file using python?

What's the most efficient way to read just the first word of every line in a large text file? Should I use split? Is there a more efficient way? Where I just read one word and discard the line and go to the next line? Right now I'm using this

341
How to install your custom flask extension

How to install your custom flask extension

I'm trying create custom flask extension and use it within my applicationI'm using below project structure

431
Derive status from a 24 value integer list representing 24 hours

Derive status from a 24 value integer list representing 24 hours

I'm trying to come up with a way to represent 3 states of availability I have for an item within a single python object if possible

282