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
Revision 5:c99347399fb7, committed 2014-01-14
- Comitter:
- AxedaCorp
- Date:
- Tue Jan 14 21:25:58 2014 +0000
- Parent:
- 4:3c2e21757a9c
- Child:
- 6:aeed0b3ebc34
- Commit message:
- Changed model to Freescale
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| main.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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 );
--- a/main.h Mon Jan 13 18:50:07 2014 +0000 +++ b/main.h Tue Jan 14 21:25:58 2014 +0000 @@ -35,7 +35,7 @@ // Default SSID Settings #define AP_KEY "masterchief" -#define AP_SECURITY WPA // WPA2 must be enabled for use with iPhone or Android phone hotspot! +#define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! #define SSID "Synapse"
