AMMP demonstration using Freescale FRDM-KL25Z and Adafruit CC3000 Arduino shield

Dependencies:   MMA8451Q NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed

Fork of AxedaGo-Freescale by Axeda Corp

Revision:
5:c99347399fb7
Parent:
4:3c2e21757a9c
Child:
6:aeed0b3ebc34
--- a/main.cpp	Mon Jan 13 18:50:07 2014 +0000
+++ b/main.cpp	Tue Jan 14 21:25:58 2014 +0000
@@ -93,7 +93,7 @@
     TSISensor touchSensor;
     const char* SERVER_ADDRESS = "dev6-connect.axeda.com";
     const int SERVER_PORT = 52689;
-    char *MODEL = "mbed";
+    char *MODEL = "Freescale";
     char *SERIAL_NUM = "xkcd321"; 
     char http_cmd[800];   
     char buffer[800];  
@@ -137,6 +137,9 @@
     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]);
+    printf("  subnet mask            = %d.%d.%d.%d \r\n", ipinfo2.aucSubnetMask[3], ipinfo2.aucSubnetMask[2], ipinfo2.aucSubnetMask[1], ipinfo2.aucSubnetMask[0]);
+    printf("  gateway                = %d.%d.%d.%d \r\n", ipinfo2.aucDefaultGateway[3], ipinfo2.aucDefaultGateway[2], ipinfo2.aucDefaultGateway[1], ipinfo2.aucDefaultGateway[0]);
+    printf("  DNS IP Address         = %d.%d.%d.%d \r\n", ipinfo2.aucDNSServer[3], ipinfo2.aucDNSServer[2], ipinfo2.aucDNSServer[1], ipinfo2.aucDNSServer[0]);
 
     wait(0.7);
     acc.getAccAllAxis( accels );