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:
- 8:464abd184b7b
- Parent:
- 7:838d7ea07e18
- Child:
- 9:a9bf63017854
--- a/HTTPServer.cpp Wed Jul 17 16:23:35 2013 +0000 +++ b/HTTPServer.cpp Thu Jul 18 08:30:11 2013 +0000 @@ -92,7 +92,7 @@ std::map<char*, RequestHandler*>::iterator itor = handlers.find(request_type); if(itor == handlers.end()) { - strcat(reply, "Only PUT, DELETE and GET requests are accepted."); + strcat(reply, "No request handler found for this type of request."); return; } if(itor->second != NULL)