Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: main.cpp
- Revision:
- 78:afb93ba1dbfd
- Parent:
- 77:a60fd4a86397
- Child:
- 80:805143f36554
diff -r a60fd4a86397 -r afb93ba1dbfd main.cpp --- a/main.cpp Tue Mar 04 21:41:48 2014 +0000 +++ b/main.cpp Tue Mar 04 21:45:27 2014 +0000 @@ -73,7 +73,7 @@ #ifdef MAC_ADDRESS mbed_mac_address(mac); memset(fmt_mac,0,RESOURCE_VALUE_LEN+1); - sprintf(fmt_mac,"%x:%x:%x:%x:%x:%x",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]); + sprintf(fmt_mac,"%02x:%02x:%02x:%02x:%02x:%02x",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]); #endif error_handler = new ErrorHandler(&pc,&lcd); endpoint = new MBEDEndpoint(error_handler,ðernet);