Fork of KL46Z Wifi version. Moved to KL25Z as umbrella stand now requires 2 SPIs, thus requires 46z.
Dependencies: WIZnet_Library_ASE mbed nanoservice_client_1_12
Fork of Trenton_Doormat_FRDM-KL25Z_ETH by
Revision 24:ad4d74ed0e4b, committed 2014-09-09
- Comitter:
- erigow01
- Date:
- Tue Sep 09 14:31:24 2014 +0000
- Parent:
- 23:7304a998959b
- Commit message:
- Updates - working version for Analyst day.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
pressure_mat.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7304a998959b -r ad4d74ed0e4b main.cpp --- a/main.cpp Tue Aug 26 15:21:11 2014 +0000 +++ b/main.cpp Tue Sep 09 14:31:24 2014 +0000 @@ -31,7 +31,7 @@ UDPSocket server; //extern TCPSocketConnection server; char endpoint_name[] = {"welcomemat"}; -uint8_t ep_type[] = {"mbed_KL46Z"}; +uint8_t ep_type[] = {"mbed_KL25Z"}; uint8_t lifetime_ptr[] = {"86400"}; static const char* NSP_ADDRESS = "192.168.1.10"; /* Trenton BBB NSP */ @@ -83,7 +83,7 @@ memset(resource_ptr->resource_parameters_ptr, 0, sizeof(sn_nsdl_resource_parameters_s)); // Static resources - nsdl_create_static_resource(resource_ptr, sizeof("detail/name")-1, (uint8_t*) "detail/name", 0, 0, (uint8_t*) "KL46Z Welcome Mat", sizeof("KL46Z Welcome Mat")-1); + nsdl_create_static_resource(resource_ptr, sizeof("detail/name")-1, (uint8_t*) "detail/name", 0, 0, (uint8_t*) "KL25Z Welcome Mat", sizeof("KL25Z Welcome Mat")-1); // Dynamic resources create_pressure_mat_resource(resource_ptr); @@ -193,6 +193,7 @@ printf("Start\n"); #ifdef USE_DHCP + printf("Using DHCP..."); int ret = eth.init(mac); //Use DHCP #else int ret = eth.init(mac, IP, MASK, GW); // static
diff -r 7304a998959b -r ad4d74ed0e4b pressure_mat.cpp --- a/pressure_mat.cpp Tue Aug 26 15:21:11 2014 +0000 +++ b/pressure_mat.cpp Tue Sep 09 14:31:24 2014 +0000 @@ -10,7 +10,7 @@ #define MINIMUM_REPORT_PERIOD 10 //Seconds //InterruptIn pressure_mat_in(PTD3); -InterruptIn pressure_mat_in(PTD3); +InterruptIn pressure_mat_in(PTA13); DigitalOut led1(LED1); Timer debounce; Timer reportTimer;