Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 5c49491

Browse files
committed
Merge pull request #42 from ARMmbed/more_debug_info
Add device name to log, and log when pressing sw2
2 parents 6c14c6c + 64b5470 commit 5c49491

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class MbedClient: public M2MInterfaceObserver {
163163

164164
void update_resource() {
165165
if(_object) {
166+
output.printf("updating resource to %d\r\n", _value);
166167
M2MObjectInstance* inst = _object->object_instance();
167168
if(inst) {
168169
M2MResource* res = inst->resource("D");
@@ -319,6 +320,7 @@ void app_start(int /*argc*/, char* /*argv*/[]) {
319320

320321
lwipv4_socket_init();
321322
output.printf("IP address %s\r\n", eth.getIPAddress());
323+
output.printf("Device name %s\r\n", MBED_ENDPOINT_NAME);
322324

323325
// On press of SW3 button on K64F board, example application
324326
// will call unregister API towards mbed Device Server

0 commit comments

Comments
 (0)