wireless debugging via Bluetooth Bee module wiki: http://mbed.org/cookbook/Wireless-Debugging-with-Bluetooth-Bee
BluetoothBee.h@4:282c2f6fb0e9, 2012-03-31 (annotated)
- Committer:
- jyam
- Date:
- Sat Mar 31 04:12:05 2012 +0000
- Revision:
- 4:282c2f6fb0e9
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jyam | 4:282c2f6fb0e9 | 1 | // BluetoothBee.h |
jyam | 4:282c2f6fb0e9 | 2 | |
jyam | 4:282c2f6fb0e9 | 3 | // This very simple API is only meant for facilitating wireless debugging via the Bluetooth Bee module through the UART |
jyam | 4:282c2f6fb0e9 | 4 | // Note: the API inherits the Serial class's functions: printf(), getc(), sscan(), etc. |
jyam | 4:282c2f6fb0e9 | 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 | 4:282c2f6fb0e9 | 6 | // Bluetooth Bee wiki: http://www.seeedstudio.com/wiki/index.php?title=Bluetooth_Bee |
jyam | 4:282c2f6fb0e9 | 7 | |
jyam | 4:282c2f6fb0e9 | 8 | #ifndef BLUETOOTHBEE_H |
jyam | 4:282c2f6fb0e9 | 9 | #define BLUETOOTHBEE_H |
jyam | 4:282c2f6fb0e9 | 10 | |
jyam | 4:282c2f6fb0e9 | 11 | #include "mbed.h" |
jyam | 4:282c2f6fb0e9 | 12 | |
jyam | 4:282c2f6fb0e9 | 13 | class BluetoothBee: public Serial { |
jyam | 4:282c2f6fb0e9 | 14 | public: |
jyam | 4:282c2f6fb0e9 | 15 | BluetoothBee(PinName tx, PinName rx); |
jyam | 4:282c2f6fb0e9 | 16 | void setup(); |
jyam | 4:282c2f6fb0e9 | 17 | }; |
jyam | 4:282c2f6fb0e9 | 18 | |
jyam | 4:282c2f6fb0e9 | 19 | #endif |