
demo of the murata wifi chip. This demo tries to connect to an open wifi access point and prints out all the relevant information about the connection. It then scans all wifi access points nearby and reports their information.
Dependencies: SNICInterface mbed-rtos mbed
Fork of SNIC-xively-jumpstart-demo by
app_board_io.cpp@7:0eff5db44b8b, 2013-10-11 (annotated)
- Committer:
- xively
- Date:
- Fri Oct 11 12:39:08 2013 +0000
- Revision:
- 7:0eff5db44b8b
- Child:
- 10:86ffba646df1
Update to use latest version of libxively (in sync with git)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xively | 7:0eff5db44b8b | 1 | #include "app_board_io.h" |
xively | 7:0eff5db44b8b | 2 | |
xively | 7:0eff5db44b8b | 3 | C12832_LCD lcd; |
xively | 7:0eff5db44b8b | 4 | |
xively | 7:0eff5db44b8b | 5 | extern "C" void lcd_printf( const char* fmt, ... ) |
xively | 7:0eff5db44b8b | 6 | { |
xively | 7:0eff5db44b8b | 7 | char buffer[ 64 ]; |
xively | 7:0eff5db44b8b | 8 | |
xively | 7:0eff5db44b8b | 9 | va_list ap; |
xively | 7:0eff5db44b8b | 10 | va_start( ap, fmt ); |
xively | 7:0eff5db44b8b | 11 | vsnprintf( buffer, 64, fmt, ap ); |
xively | 7:0eff5db44b8b | 12 | va_end( ap ); |
xively | 7:0eff5db44b8b | 13 | |
xively | 7:0eff5db44b8b | 14 | lcd.cls(); |
xively | 7:0eff5db44b8b | 15 | lcd.locate( 0, 3 ); |
xively | 7:0eff5db44b8b | 16 | lcd.printf( buffer ); |
xively | 7:0eff5db44b8b | 17 | //wait( 1.0 ); |
xively | 7:0eff5db44b8b | 18 | } |