mbed RPC

Dependents:   RPC_Serial_OVFZ RPCHTTPServer SerialRPC_rtos_example RPC_HTTP ... more

Fork of mbed-rpc by mbed official

Files at this revision

API Documentation at this revision

Comitter:
sarahmarshy
Date:
Mon Jun 15 16:27:17 2015 +0000
Parent:
8:fece2d5e8d96
Child:
10:d3e03663a6f4
Commit message:
Populated reply message when correct RPC method is found.

Changed in this revision

rpc.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/rpc.cpp	Mon Feb 09 09:15:22 2015 +0000
+++ b/rpc.cpp	Mon Jun 15 16:27:17 2015 +0000
@@ -146,6 +146,7 @@
         /* Look through the methods for the one whose name matches */
         while (true) {
             for (; cur_method->name != NULL; cur_method++) {
+                r.putData<const char*>(cur_method->name);
                 if (strcmp(cur_method->name, args.method_name) == 0) {
                     (cur_method->method_caller)(p, &args, &r);
                     return true;