Jakeler / ble-serial

"RFCOMM for BLE" a UART over Bluetooth low energy (4+) bridge for Linux, Mac and Windows
https://blog.ja-ke.tech/tags/#bluetooth
MIT License
251 stars 37 forks source link

macOS (Darwin) #35

Closed Jakeler closed 3 years ago

Jakeler commented 3 years ago

Discussed in https://github.com/Jakeler/ble-serial/discussions/34

Originally posted by **istvanzk** July 6, 2021 Hi, Thank you for the nice tool. I wanted to run this on macOS (Darwin) but this was not supported 'out-of-the-box'. Luckily, the required code change to enable this is very simple. In ble_serial/__init__.py, I have modified line 3 to `if (platform.system() == 'Linux') or (platform.system() == 'Darwin'):` Also, the ReadMe could be updated to indicate that when running on macOS, the BT MAC address is not displayed by blue-scan and instead an OS specific UUID is displayed, which then can be used with the option -d. I have succesfully tested the above in macOS 10.15.7 (Catalina). Best