HTTP (RPC) Server mit UI

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

Fork of IoTKit_RPC-Server by th.iotkit.ch

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/

Revision:
9:a9bf63017854
Parent:
6:d03e189ebbfe
Child:
10:8b4c3d605bf0
--- a/Formatter.cpp	Thu Jul 18 08:30:11 2013 +0000
+++ b/Formatter.cpp	Thu Jul 18 09:39:35 2013 +0000
@@ -52,7 +52,7 @@
 <body>";
     
 const char* INTERACTIVE_HTML_CODE_2 = "<h3>Create Object :</h3>\
-<form id=\"create\" method=\"get\">\
+<form>\
 Type: <select id=\"type\">\
 <option value=\"/DigitalOut/\">DigitalOut</option>\
 <option value=\"/DigitalIn/\">DigitalIn</option>\
@@ -67,9 +67,9 @@
  \
 <h3>Call a function :</h3>\
 <p>Enter an RPC command.</p>\
-<form method=\"get\">\
+<form>\
 Command: <input type= \"text\" id=\"command\"><br>\
-<input type=\"button\" value=\"Send\" onclick=\"javascript:submitCallFuncForm();\"><br>\
+<p><input type=\"button\" value=\"Send\" onclick=\"javascript:submitCallFuncForm();\"></p><br>\
 </form>\
 </body> \
 </html>";