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
Diff: main.cpp
- Revision:
- 24:ad4d74ed0e4b
- Parent:
- 23:7304a998959b
--- 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