See: http://mbed.org/users/okini3939/notebook/wifi_rpc/
Dependencies: GSwifiInterface mbed-rpc mbed
Diff: main.cpp
- Revision:
- 3:57b308f73055
- Parent:
- 2:33dc972331bb
--- a/main.cpp Mon May 12 05:23:33 2014 +0000 +++ b/main.cpp Mon May 12 14:47:23 2014 +0000 @@ -12,7 +12,8 @@ DigitalOut led1(LED1), led2(LED2); Serial pc(USBTX, USBRX); -GSwifi gs(p13, p14, p12, P0_22, p20, NC, 115200); // mbed LPC1768 +//GSwifi gs(p13, p14, p12, P0_22, p20, NC, 115200); // mbed LPC1768 +GSwifi gs(p13, p14, p12, p11, p20, NC, 115200); // mbed LPC1768 LocalFileSystem local("local"); void ws_server (int cid) { @@ -47,6 +48,7 @@ RPC::add_rpc_class<RpcDigitalInOut>(); RPC::add_rpc_class<RpcPwmOut>(); RPC::add_rpc_class<RpcAnalogIn>(); + RPC::add_rpc_class<RpcAnalogOut>(); gs.httpd(80); gs.httpdAttach("/ws/", &ws_server, 1);