wireless debugging via Bluetooth Bee module wiki: http://mbed.org/cookbook/Wireless-Debugging-with-Bluetooth-Bee
BluetoothBee.h@0:4e1c16dddbad, 2012-03-30 (annotated)
- Committer:
- jyam
- Date:
- Fri Mar 30 18:55:57 2012 +0000
- Revision:
- 0:4e1c16dddbad
- Child:
- 2:0c8cd82a5a45
initial publish
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jyam | 0:4e1c16dddbad | 1 | // BluetoothBee.h |
jyam | 0:4e1c16dddbad | 2 | |
jyam | 0:4e1c16dddbad | 3 | // This very simple API is only meant for facilitating wireless debugging via the Bluetooth Bee module through the UART |
jyam | 0:4e1c16dddbad | 4 | // Note: the API inherits the Serial class's functions: printf(), getc(), sscan(), etc. |
jyam | 0:4e1c16dddbad | 5 | // however the Serial class's "setup" functions, such as baud() and format() will not behave as you expect; thus don't use them |
jyam | 0:4e1c16dddbad | 6 | // Bluetooth Bee wiki: http://www.seeedstudio.com/wiki/index.php?title=Bluetooth_Bee |
jyam | 0:4e1c16dddbad | 7 | |
jyam | 0:4e1c16dddbad | 8 | #ifndef BLUETOOTHBEE_H |
jyam | 0:4e1c16dddbad | 9 | #define BLUETOOTHBEE_H |
jyam | 0:4e1c16dddbad | 10 | |
jyam | 0:4e1c16dddbad | 11 | #include "mbed.h" |
jyam | 0:4e1c16dddbad | 12 | |
jyam | 0:4e1c16dddbad | 13 | class BluetoothBee: public Serial { |
jyam | 0:4e1c16dddbad | 14 | public: |
jyam | 0:4e1c16dddbad | 15 | BluetoothBee(PinName tx, PinName rx); |
jyam | 0:4e1c16dddbad | 16 | |
jyam | 0:4e1c16dddbad | 17 | void setup(); |
jyam | 0:4e1c16dddbad | 18 | }; |
jyam | 0:4e1c16dddbad | 19 | |
jyam | 0:4e1c16dddbad | 20 | #endif |