How do you write cross-platform Bleak code, that uses the OS-specific scanners and options? #1324
Unanswered
victorhooi
asked this question in
Q&A
Replies: 1 comment
-
Bleak automatically uses the correct backend for your OS. If this is for a personal project, then sure, use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to use the pytimeflip library to interface with my Timeflip device.
My computer is running macOS.
However, it seems that macOS does BLE a bit different - the first issue I hit is that it seems macOS doesn't return normal MAC addresses by default (#284, #140).
However, I saw #1073, and it seems like I can use the macOS specific Bleak scanner, which could potentially get me MAC addresses (and I assume would work better under macOS).
My question is - what is the recommended (or best-practice) way to write Bleak code, that handles the different platform backends (e.g. Windows vs Linux vs macOS), and with specific arguments (e.g.
use_bdaddr
)?Beta Was this translation helpful? Give feedback.
All reactions