Closed arslan437 closed 4 years ago
I got this as well.
This error is actually in https://github.com/adafruit/Adafruit_Blinka_bleio: transferred issue to there.
It's true that the signature of Adapter.start_advertising()
is incorrect: it should have an optional timeout
parameter in the code below. I will fix that - thanks for finding it. However, Adafruit_Blinka_bleio
only implements BLE Central mode, so If the call happened, you'd discover that it will throw NotImplementedError
, because advertising is not supported. So unfortunately you can't use Adafruit_Blinka_bleio
to get the time from an iPhone, etc.
Is there any plan in near future to add peripheral support?
The underlying library we use for cross-platform support, https://github.com/hbldh/bleak, does not support acting as a peripheral.
No problem. Adafruit has really good documentation. I usually prefer to use their libraries. There is another library bluezero based on bluez I will try that.
I am using rapberry 4