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

Files at this revision

API Documentation at this revision

Comitter:
tsungta
Date:
Wed Apr 20 05:44:22 2016 +0000
Parent:
9:16ac259b2ce7
Child:
11:e22dfe039dee
Commit message:
Update all libraries in this program

Changed in this revision

BLE_API.lib Show annotated file Show diff for this revision Revisions of this file
WIFI_API_32kRAM.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
nRF51822.lib Show annotated file Show diff for this revision Revisions of this file
--- a/BLE_API.lib	Fri Aug 14 10:06:46 2015 +0000
+++ b/BLE_API.lib	Wed Apr 20 05:44:22 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8d316a3271a8
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#66159681aa21
--- a/WIFI_API_32kRAM.lib	Fri Aug 14 10:06:46 2015 +0000
+++ b/WIFI_API_32kRAM.lib	Wed Apr 20 05:44:22 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Delta/code/WIFI_API_32kRAM/#1cc76b1199e6
+http://developer.mbed.org/teams/Delta/code/WIFI_API_32kRAM/#4b575f5144cd
--- 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)
--- a/mbed.bld	Fri Aug 14 10:06:46 2015 +0000
+++ b/mbed.bld	Wed Apr 20 05:44:22 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/b9ad9a133dc7
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file
--- a/nRF51822.lib	Fri Aug 14 10:06:46 2015 +0000
+++ b/nRF51822.lib	Wed Apr 20 05:44:22 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#ca9c9c2cfc6a
+http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#f7faad332abc