RPC over HTTP to control mbed application
Dependencies: EthernetInterface HTTPServer mbed-rpc mbed-rtos mbed
Fork of RPC_HTTP by
Revision 6:15e566d10c16, committed 2018-02-13
- Comitter:
- MohamadNazrin
- Date:
- Tue Feb 13 06:17:07 2018 +0000
- Parent:
- 5:5322cbfd7c01
- Commit message:
- RPC HTTP
Changed in this revision
HTTP_RPC.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5322cbfd7c01 -r 15e566d10c16 HTTP_RPC.cpp --- a/HTTP_RPC.cpp Mon Jun 15 16:52:53 2015 +0000 +++ b/HTTP_RPC.cpp Tue Feb 13 06:17:07 2018 +0000 @@ -25,13 +25,15 @@ #include "mbed_rpc.h" RpcDigitalOut led1(LED1,"led1"); +RpcDigitalOut led2(p21,"led2"); EthernetInterface eth; HTTPServer svr; int main() { //Turn the LEDs off - led1.write(1); + led1.write(0); + led2.write(0); RPC::add_rpc_class<RpcDigitalOut>();