wireless debugging via Bluetooth Bee module wiki: http://mbed.org/cookbook/Wireless-Debugging-with-Bluetooth-Bee
main.cpp@3:d5f6ef5107b4, 2012-03-30 (annotated)
- Committer:
- jyam
- Date:
- Fri Mar 30 19:49:10 2012 +0000
- Revision:
- 3:d5f6ef5107b4
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jyam | 3:d5f6ef5107b4 | 1 | #include "mbed.h" |
jyam | 3:d5f6ef5107b4 | 2 | #include "BluetoothBee.h" |
jyam | 3:d5f6ef5107b4 | 3 | |
jyam | 3:d5f6ef5107b4 | 4 | BluetoothBee b(p9,p10); |
jyam | 3:d5f6ef5107b4 | 5 | Serial pc(USBTX, USBRX); |
jyam | 3:d5f6ef5107b4 | 6 | |
jyam | 3:d5f6ef5107b4 | 7 | int main() { |
jyam | 3:d5f6ef5107b4 | 8 | b.setup(); |
jyam | 3:d5f6ef5107b4 | 9 | |
jyam | 3:d5f6ef5107b4 | 10 | // Bluetooth Bee now visible; pair with device (open Terminal program such as PuTTY) |
jyam | 3:d5f6ef5107b4 | 11 | |
jyam | 3:d5f6ef5107b4 | 12 | b.printf("hello world\n"); |
jyam | 3:d5f6ef5107b4 | 13 | return 0; |
jyam | 3:d5f6ef5107b4 | 14 | } |