#Overview
This sample source code is writing in how to implementation BLE application using python on OSX. It is using CoreBluetooth Library via PyObjC. Target BLE device is 2JCIE-BL01 OMRON Enviroment sensor.
Mac OSX 10.14.5 Python 3.6 (Anaconda Distribution)
##Install PyObjC
You must install pyobjc first. You can try to install it using pip with:
pip install pyobjc
If that fails, you can install it from source downloaded with mecruial:
$ hg clone https://bitbucket.org/ronaldoussoren/pyobjc $ python3 pyobjc/install.py
Finally, you can download and install a pre-compiled verison from:
##Run script
$ cd corebluetooth
$ python corebluetooth_sample.py
- Python - Human Interface Device Android Attack Framework
- Creating a Simple BLE Scanner on iPhone
- Adafruit - Connecting to a Peripheral
- Original code: @masato-ka
- Rewrite by: simsong