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 libMiMic by
Diff: mbed/jsonrpc/RpcDigitalOut.cpp
- Revision:
- 75:2a18df0ef111
- Parent:
- 72:c118a7aa37a3
- Child:
- 76:b375b3d750d8
--- a/mbed/jsonrpc/RpcDigitalOut.cpp Sat Jun 14 02:25:19 2014 +0000
+++ b/mbed/jsonrpc/RpcDigitalOut.cpp Sat Jun 14 15:55:57 2014 +0000
@@ -1,5 +1,5 @@
-#include "NyLPC_http.h"
#include "mod/ModJsonRpc.h"
+#include "MbedJsApi.h"
#include "mbed.h"
namespace MiMic
{
@@ -93,15 +93,18 @@
- const struct NyLPC_TJsonRpcMethodDef RpcDigitalOut[]=
- {
- { "_new1" ,"u" ,DigitalOutHandler::new1},
- { "_new2" ,"ud" ,DigitalOutHandler::new2},
- { "write" ,"dd" ,DigitalOutHandler::write},
- { "read" ,"d" ,DigitalOutHandler::read},
- { NULL ,NULL ,NULL}
- };
-
+const static struct NyLPC_TJsonRpcMethodDef func_table[]=
+{
+ { "_new1" ,"u" ,DigitalOutHandler::new1},
+ { "_new2" ,"ud" ,DigitalOutHandler::new2},
+ { "write" ,"dd" ,DigitalOutHandler::write},
+ { "read" ,"d" ,DigitalOutHandler::read},
+ { NULL ,NULL ,NULL}
+};
+
+const struct NyLPC_TJsonRpcClassDef MbedJsApi::RPC_MBED_DIGITAL_OUT={
+ "mbedJS","DigitalOut",func_table
+};
