HTTP (RPC) Server mit UI
Dependencies: EthernetInterface mbed-rpc mbed-rtos mbed
Fork of IoTKit_RPC-Server by
HTTP (RPC) Server mit eigener UI Oberfläche.
Board mit dem Ethernet verbinden. Console starten und angezeigte IP-Adresse notieren und in Browser öffnen.
Create Object
Type: DigitalOut Name: led1 arg(optional): PTB22
und Create Button drücken.
Call a function
Command: /led1/write 1
eingeben und Send drücken. Das rote LED auf dem Board geht aus. Mittels /led1/write 0 wird es wieder eingeschaltet.
Für die komplette Dokumentation siehe /users/feb11/code/HTTP-Server/
Diff: HTTPServer.cpp
- Revision:
- 4:624527ebc0fa
- Parent:
- 0:9e4bcb10b3e3
- Child:
- 7:838d7ea07e18
--- a/HTTPServer.cpp Wed Jul 17 11:07:06 2013 +0000 +++ b/HTTPServer.cpp Wed Jul 17 15:00:24 2013 +0000 @@ -6,14 +6,7 @@ { return strcmp(a,b) < 0; } -const char *TEST = "\ -<!DOCTYPE html>\ -<html>\ - <head>\ - <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\ - <title>TCP Server</title>\ - </head>\ - <body>Hello World !</body></html>"; + HTTPServer::HTTPServer(Formatter *f): socket(), handlers(&cmp),