Using BLE to control WIFI configuration as SSID and PW.

Dependencies:   BLE_API WIFI_API_32kRAM mbed nRF51822

Fork of NNN40_WiFi by Delta

BLE_WIFIControl enables user to setup Wifi connection via BLE link. Here is iPhone app that teaches you how to use this BLE_WIFIControl example. /media/uploads/Marcomissyou/ios_app_for_wifi_configure.pdf

Revision:
10:5cffa136892c
Parent:
9:16ac259b2ce7
Child:
11:e22dfe039dee
--- a/main.cpp	Fri Aug 14 10:06:46 2015 +0000
+++ b/main.cpp	Wed Apr 20 05:44:22 2016 +0000
@@ -22,12 +22,12 @@
 const static char     DEVICE_NAME[]        = "TSUNGTA_BLE WCS";
 static volatile bool  triggerSensorPolling = false;
  
-void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason)
+void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
 {
-    ble.startAdvertising(); // restart advertising
+    ble.startAdvertising();
 }
 
-const char* PC_SERVER_ADDRESS = "192.168.15.101";
+const char* PC_SERVER_ADDRESS = "172.20.10.2";
 uint16_t PC_PORT = 5222;
  
 int main(void)