Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RPCFunction Class Reference
Class to call custom functions over RPC For details see rpc.h. More...
#include <RPCFunction.h>
Inherits physcom::RPC.
Public Member Functions | |
| RPCFunction (void(*f)(char *, char *), const char *=NULL) | |
| Constructor. | |
Static Public Member Functions | |
| static bool | call (char *input, char *output) |
| Static method. | |
Detailed Description
Class to call custom functions over RPC For details see rpc.h.
Definition at line 14 of file RPCFunction.h.
Constructor & Destructor Documentation
| RPCFunction | ( | void(*)(char *, char *) | f, |
| const char * | name = NULL |
||
| ) |
Constructor.
- Parameters:
-
f Pointer to the function to call. the function must be of the form void foo(char * input, char * output) name The name of this object
Definition at line 5 of file RPCFunction.cpp.
Member Function Documentation
| bool call | ( | char * | input, |
| char * | output | ||
| ) | [static, inherited] |
Static method.
Should be called everytime input is read on the serial connection. RPC::call(input, output) will parse the input and call the apropriate RPCFunction to compute the output and populate the result string.
- Parameters:
-
Input string received from the serial connection Output string rcomputed by executing the RPC function. Should be sent back to the caller over the serial connection.
Generated on Sun Jul 17 2022 07:37:17 by
1.7.2