Interface library for BlueGiga BLE112 and BLE113 modules
A library for using Bluetooth Low Energy modules created by BlueGiga. This module is pure python usable from Windows, Ubuntu, and any platform with a serial port and the ability to run Python (like Raspberry Pi and Beaglebone Black). Examples are provided for both client and server functionality. Note that if you want to develop your own device GATT profile, it requires a module firmware update.
bgapi.py has two important components:
cmd_def.py eliminates the need for magic numbers in method parameters, use it for more readable code.
The test folder demonstrates high level Bluetooth Smart operations. It provides examples of Apple’s iBeacon and Google’s prototype Physical Web. Testing of this library is limited to what you see in these examples. Many BGAPI commands cannot be tested, especially hardware operations like GPIO and I2C. Two BLE112 devices are needed for all tests.