Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
CoreBluetooth: How to get advertisement data and scan response?
-
Hi,
Is there a way to get the BLE scan response when scanning for devices?
Is there a way to get advertisement data from surrounding BLE device?
Cheers,
Eric T
-
Can you provide some code along with these questions? http://omz-software.com/pythonista/docs/ios/cb.html Seems to have great working examples that should show you what is possible.
-
From the documentation, I couldn't find any info about the scan response...
So I was wondering if there is another way to access the advertised data. Or if there is just no way?
My BLE device uses BLE advertising to give some info to the Central. And I was willing to use pythonista as a debug tool to troubleshot my device, but it seems it won't be possible...
Cheers,
Eric T. -
If you are willing to delve into objc_util, you should be able to implement a central manager delegate, and implement centralManager_didDiscoverPeripheral_advertisementData_RSSI_, I think.. Haven't tried it though.
-
Thx for your reply JonB.
I might just go for a std ObjC app I would have to dig through the objc_util thing ^^
The thing I don't understand is why the cb module doesn't expose the advData and RSSI params from the CoreBluetooth API.