This is a sample application program for GR-PEACH_WlanBP3595AP library. GR-PEACH_WlanBP3595AP library only works with GR-PEACH. This sample works as TCP socket sever, and this program sends a message when a connection is accepted.
Dependencies: EthernetInterface GR-PEACH_WlanBP3595AP mbed-rtos mbed
Fork of GR-PEACH_WlanBP3595AP_sample by
Diff: main.cpp
- Revision:
- 2:59a519fa59d0
- Parent:
- 1:3eae92f063c3
- Child:
- 4:720fdca0822c
--- a/main.cpp Tue May 31 07:20:18 2016 +0000 +++ b/main.cpp Tue May 31 07:31:24 2016 +0000 @@ -1,6 +1,12 @@ -/* This is a sample application program for WlanBP3595 library. */ -/* This program works as TCP socket sever, and this program sends a message */ -/* when a connection is accepted. The setting of the WLAN is WPA2+AES. */ +/* This is a sample application program for GR-PEACH_WlanBP3595AP library. */ +/* GR-PEACH_WlanBP3595AP library only works with GR-PEACH. */ +/* This sample works as TCP socket sever, and this program sends a message */ +/* when a connection is accepted. */ + +/* +This works with the following library. + mbed-rtos : revision 115 +*/ #include "mbed.h" #include "rtos.h" @@ -73,10 +79,8 @@ if (ucType == 'I') { if (usWid == 0x0005) { // WID_STATUS if (pucData[0] == 0x01) { // CONNECTED - /* Notify the EthernetInterface driver that WLAN has been connected */ green_led = 1; } else { - /* Notify the EthernetInterface driver that WLAN has been disconnected */ green_led = 0; } }