NNN40 change mode from AP to STA by HTTP server

Dependencies:   WIFI_API_32kRAM mbed

How to use Demo code

  • Step1: Prepare a router, and set the SSID and Password as follow
  1. SSID: "SSID"
  2. Password: "0123456789"
  • Step2: Burn demo code to NNN40 module.

You can drag and drop the sample code to NNN40 module.

  • Step3: Login module from Http server (192.168.2.1) by PC.

You can set SSID and password by browser. After clicking "confirm" button, the module will change mode from AP to STA, get IP from router

  • DEMO video:
Revision:
13:f3d681e5b6c6
Parent:
12:eca9b56155c7
Child:
14:b007595028e2
--- a/Formatter.cpp	Wed Sep 23 03:08:49 2015 +0000
+++ b/Formatter.cpp	Wed Sep 23 03:16:17 2015 +0000
@@ -120,8 +120,7 @@
 <br><input type=\"text\" id=\"password\" name=\"pwd\">\
 <div align=\"center\"><input class=\"font\" type=\"button\" style=\"width: 160px; height: 80px; margin: 50px 40px 0px 0px; font-size: 25px\" value=\"Confirm\" onclick=\"send()\" />\
 <input class=\"font\" type=\"button\" style=\"width: 160px; height: 80px; margin: 50px 40px 0px 0px; font-size: 25px\" value=\"Reset\" onclick=\"reset()\" />\
-</div></form><div style=\"margin-top: 100px\"><font size=\"2\" style=\"color: #ffffff\">Copyright by Lester Lee.</font>\
-</div></div></body></html>" ;
+</div></form></div></body></html>" ;
 
 static char chunk[1024];