Partial implementation of BlueGiga's BGAPI for use with the BLE112/3 modules over UART.
Hi there! I recently started using BLE112 modules with the mbed LPC1768 MCU, and I realized there was no implementation of BlueGiga's BGAPI available for mbed. This library implements only a few commands, but if you're looking to get started, this is a good place to look.
This was developed against BGAPI v1.3.2. I make no guarantees as to how well it will work with newer revisions of the software.
Diff: BGLib.h
- Revision:
- 5:7c7220a316ed
- Parent:
- 4:21eee6881dac
- Child:
- 6:23d9a99dcde0
--- a/BGLib.h Tue May 19 04:35:46 2015 +0000 +++ b/BGLib.h Tue May 19 05:01:10 2015 +0000 @@ -1,8 +1,6 @@ #include "mbed.h" #include "callbacks.h" - -class BGLib { /** A class which can communicate with a BlueGiga BLE112(3) over a UART Connection. Note that all communication is asynchronous. Your class will have to supply callbacks for each command it intends to use. * * Example: @@ -22,8 +20,12 @@ * ble112.set_ble_rsp_system_hello(&helloCallback); * ble112.ble_cmd_system_hello(); * } +* @endcode */ +class BGLib { + + public: /** Create a BGLib instance * @param tx Pin to use for UART transmission