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.
Fork of RPC_Serial by
Revision 5:4ddd10908e46, committed 2014-08-14
- Comitter:
- MichaelW
- Date:
- Thu Aug 14 09:25:00 2014 +0000
- Parent:
- 4:37712731e13d
- Commit message:
- Updated comments;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Aug 14 09:08:44 2014 +0000
+++ b/main.cpp Thu Aug 14 09:25:00 2014 +0000
@@ -1,14 +1,17 @@
#include "mbed.h"
#include "mbed_rpc.h"
-//This example program as been updated to use the RPC implementation in the new mbed libraries.
+/**
+ * This example program has been updated to use the RPC implementation in the new mbed libraries.
+ * This example demonstrates using RPC over serial
+ */
//Use the RPC enabled wrapped class - see RpcClasses.h for more info
RpcDigitalOut myled(LED4,"myled");
Serial pc(USBTX, USBRX);
int main() {
- //The mbed RPC classes are now wrapped to create an RPC enabled version - see RpcClasses.h so no longer any need to add them to the base class
+ //The mbed RPC classes are now wrapped to create an RPC enabled version - see RpcClasses.h so don't add to base class
// receive commands, and send back the responses
char buf[256], outbuf[256];
