mbed RPC

Dependents:   WiFlyHTTPServerSample MultiThreadingHTTPServer HTTP-Server EthHTTPServer ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Revision:
9:d8113058854e
Parent:
1:6919289a5946
Child:
10:d3e03663a6f4
--- 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;