Remote Procedure Call (RPC) over Websockets (uses MbedJSONValue)

Dependents:   RPC_mbed_client RPC_Wifly_HelloWorld RPC_Ethernet_HelloWorld

Revision:
4:2f83c922c234
Parent:
3:4a3bc3a2314f
Child:
5:88e1902947e5
--- a/MbedJSONRpc.h	Thu Sep 22 11:02:24 2011 +0000
+++ b/MbedJSONRpc.h	Thu Sep 22 11:06:57 2011 +0000
@@ -120,7 +120,7 @@
  * class Test {
  * public:
  *   Test() {};
- *   void fn(JSONRpcValue& val, JSONRpcValue& res) {
+ *   void fn(MbedJSONValue& val, MbedJSONValue& res) {
  *       printf("first arg: %s\r\n", val[0].get<string>().c_str());
  *       res[0] = "coucou";
  *       led1 = 1;
@@ -130,7 +130,7 @@
  *
  * #ifdef WIFI
  * //wifi and websocket
- *  Wifly wifly(p9, p10, p30, "mbed", "mbedapm2011", true);
+ *  Wifly wifly(p9, p10, p30, "NETGEAR", "hello", true);
  *  Websocket webs("ws://sockets.mbed.org:888/ws/samux/server",&wifly);
  * #endif
  *
@@ -139,7 +139,7 @@
  * #endif
  *
  * //RPC object identified with the name "server" on the network and attached to the websocket server
- * MbedJSONRpc rpc("server", &webs);
+ * MbedJSONRpc rpc(&webs);
  * 
  * Test test;
  *
@@ -184,7 +184,7 @@
  * @code
  * #include "mbed.h"
  * #include "MbedJSONRpc.h"
- * #include "MbedJSONRpcValue.h"
+ * #include "MbedJSONValue.h"
  * #include "Websocket.h"
  *
  * #define WIFI
@@ -197,7 +197,7 @@
  *
  * #ifdef WIFI
  *   //wifi and websocket
- *   Wifly wifly(p9, p10, p21, "mbed", "mbedapm2011", true);
+ *   Wifly wifly(p9, p10, p30, "NETGEAR", "hello", true);
  *   Websocket webs("ws://sockets.mbed.org:888/ws/samux/client",&wifly);
  * #endif
  *
@@ -206,7 +206,7 @@
  * #endif
  * 
  * //RPC object identified by the name "client" on the network and attached to the websocket server
- * MbedJSONRpc rpc("client", &webs);
+ * MbedJSONRpc rpc(&webs);
  *
  * int main() {
  *