Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed-src mbed-rtos
Fork of cc3000_hello_world_demo by
Revision 1:c3a27e2adf93, committed 2013-10-08
- Comitter:
- Kojto
- Date:
- Tue Oct 08 16:45:38 2013 +0200
- Parent:
- 0:db8738fc21e8
- Child:
- 2:acdb9b05b103
- Commit message:
- \r\n inside connect to AP
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Oct 06 16:29:29 2013 +0000
+++ b/main.cpp Tue Oct 08 16:45:38 2013 +0200
@@ -60,11 +60,11 @@
* \return none
*/
void connect_to_ssid(char *ssid, char *key, unsigned char sec_mode) {
- printf("Connecting to SSID: %s. Timeout is 10s.\n",ssid);
+ printf("Connecting to SSID: %s. Timeout is 10s. \r\n",ssid);
if (wifi.connect_to_AP((uint8_t *)ssid, (uint8_t *)key, sec_mode) == true) {
- printf(" Connected\n");
+ printf(" Connected. \r\n");
} else {
- printf(" Connection timed-out (error). Please restart.\n");
+ printf(" Connection timed-out (error). Please restart. \r\n");
while(1);
}
}
@@ -108,7 +108,7 @@
wait_ms(500);
printf(" Waiting for dhcp to be set. \r\n");
}
-
+
tNetappIpconfigRetArgs ipinfo2;
wifi.get_ip_config(&ipinfo2); // data is returned in the ipinfo2 structure
printf("DHCP assigned IP Address = %d.%d.%d.%d \r\n", ipinfo2.aucIP[3], ipinfo2.aucIP[2], ipinfo2.aucIP[1], ipinfo2.aucIP[0]);
