Using BLE to control WIFI configuration as SSID and PW.
Dependencies: BLE_API WIFI_API_32kRAM mbed nRF51822
Fork of NNN40_WiFi by
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 9:16ac259b2ce7, committed 2015-08-14
- Comitter:
- wgd8700
- Date:
- Fri Aug 14 10:06:46 2015 +0000
- Parent:
- 8:d39bc94f139b
- Child:
- 10:5cffa136892c
- Commit message:
- Update BLE_API, nRF51822, and mbed libs to sync throughout all sample code, work for 32KB RAM revision platform; Update main.cpp to switch RF for WiFi before wifi.connect
Changed in this revision
--- a/BLE_API.lib Tue Jun 30 03:12:25 2015 +0000 +++ b/BLE_API.lib Fri Aug 14 10:06:46 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#9f4251b3355c +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8d316a3271a8
--- a/WIFI_API_32kRAM.lib Tue Jun 30 03:12:25 2015 +0000 +++ b/WIFI_API_32kRAM.lib Fri Aug 14 10:06:46 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/Delta/code/WIFI_API_32kRAM/#4085cc9441f3 +http://developer.mbed.org/teams/Delta/code/WIFI_API_32kRAM/#1cc76b1199e6
--- a/main.cpp Tue Jun 30 03:12:25 2015 +0000
+++ b/main.cpp Fri Aug 14 10:06:46 2015 +0000
@@ -32,7 +32,7 @@
int main(void)
{
- NRF_CLOCK->XTALFREQ = 0x00; //Tsungta, Used to active radio correctly external when XTAL 32MHz is loaded
+ //NRF_CLOCK->XTALFREQ = 0x00; //Tsungta, Used to active radio correctly external when XTAL 32MHz is loaded
TCPSocketConnection sock;
RFSWIO = 0;
@@ -59,7 +59,7 @@
BLEWIFIService.is_config = false;
//ble.shutdown();
eth.init(); //Use DHCP
-
+ RFSWIO = 1; //Switch RF to WiFi
while (eth.connect()) {}
is_AP_connect = true;
--- a/mbed.bld Tue Jun 30 03:12:25 2015 +0000 +++ b/mbed.bld Fri Aug 14 10:06:46 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/b9ad9a133dc7 \ No newline at end of file
--- a/nRF51822.lib Tue Jun 30 03:12:25 2015 +0000 +++ b/nRF51822.lib Fri Aug 14 10:06:46 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#7c68c8d67e1f +http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#ca9c9c2cfc6a
