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_DigitalInDigitalOutPWMOutoverSerial by
Diff: main.cpp
- Revision:
- 3:4ddd10908e46
- Parent:
- 2:37712731e13d
- Child:
- 4:d69dfbef9644
diff -r 37712731e13d -r 4ddd10908e46 main.cpp
--- 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];
