avnish aggarwal
/
TOOLS-Wifly_configure
ok black antenna MUST be up
Fork of Wifly_configure by
main.cpp@2:012b53613270, 2013-11-15 (annotated)
- Committer:
- avnisha
- Date:
- Fri Nov 15 04:41:32 2013 +0000
- Revision:
- 2:012b53613270
- Parent:
- 1:20eea0789016
ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux | 0:a63053b8abc0 | 1 | #include "mbed.h" |
samux | 0:a63053b8abc0 | 2 | |
samux | 0:a63053b8abc0 | 3 | Serial pc(USBTX, USBRX); |
avnisha | 2:012b53613270 | 4 | //Serial wifi(p9,p10); // app board |
avnisha | 2:012b53613270 | 5 | Serial wifi(p28,p27); // Polulu |
samux | 0:a63053b8abc0 | 6 | |
samux | 0:a63053b8abc0 | 7 | |
samux | 0:a63053b8abc0 | 8 | int main() { |
samux | 0:a63053b8abc0 | 9 | |
avnisha | 2:012b53613270 | 10 | pc.printf("Test Polulu ifly!\r\n"); |
samux | 0:a63053b8abc0 | 11 | |
samux | 0:a63053b8abc0 | 12 | while (1) |
samux | 0:a63053b8abc0 | 13 | { |
samux | 0:a63053b8abc0 | 14 | while(pc.readable()) |
samux | 0:a63053b8abc0 | 15 | wifi.putc(pc.getc()); |
samux | 0:a63053b8abc0 | 16 | while(wifi.readable()) |
samux | 0:a63053b8abc0 | 17 | pc.putc(wifi.getc()); |
samux | 0:a63053b8abc0 | 18 | } |
samux | 0:a63053b8abc0 | 19 | } |