Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

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
+};