This is a sample application program for GR-PEACH_WlanBP3595STA library. GR-PEACH_WlanBP3595STA 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_WlanBP3595STA mbed-rtos mbed
Fork of GR-PEACH_WlanBP3595STA_sample by
Revision 2:d1f57f718b0c, committed 2016-05-31
- Comitter:
- tousaki
- Date:
- Tue May 31 07:37:14 2016 +0000
- Parent:
- 1:423b42d70d3f
- Child:
- 3:600c7606ab87
- Commit message:
- Modified some comments
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue May 31 07:23:03 2016 +0000
+++ b/main.cpp Tue May 31 07:37:14 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_WlanBP3595STA library. */
+/* GR-PEACH_WlanBP3595STA 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;
}
}
