Sparkfun CC3000 WiFi Shield meets mbed. Supports the following boards: (1)FRDM-KL25Z (KL25Z) (2)ST Nucleo F401RE (STM32F401) (3)ST Nucleo F030R8 (STM32F030) (4)LPCXpresso1549 (LPC1549) (5)Seeduino-Arch-Pro (ARCH_PRO)
Dependencies: cc3000_hostdriver_mbedsocket mbed
Fork of cc3000_hello_world_demo by
Diff: main.cpp
- Revision:
- 1:c3a27e2adf93
- Parent:
- 0:db8738fc21e8
- Child:
- 4:2304a105c87f
--- 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]);