HTTP RPC Server mit vordefinierten Objekten

Dependencies:   EthernetInterface HttpServer mbed-rpc mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
stefan1691
Date:
Thu Apr 02 07:25:02 2015 +0000
Parent:
0:ad2568075748
Commit message:
Web-APP ergaenzt

Changed in this revision

Web-APP/config.xml Show annotated file Show diff for this revision Revisions of this file
Web-APP/index.html Show annotated file Show diff for this revision Revisions of this file
diff -r ad2568075748 -r efd4f8b15e66 Web-APP/config.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Web-APP/config.xml	Thu Apr 02 07:25:02 2015 +0000
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<widget xmlns = "http://www.w3.org/ns/widgets"
+
+    xmlns:gap   = "http://phonegap.com/ns/1.0"
+    id          = "ch.admin.hermes"
+    version     = "1.0.0"
+    versionCode = "10" >
+
+    <!-- versionCode is optional and Android only -->
+
+    <preference name="SimpleApp" value="1.0.0" />
+
+    <name>Simple App</name>
+
+    <description>
+    Simple App (c) Marcel Bernet, Zuerich
+    </description>
+
+    <author href="http://www.mc-b.ch" email="marcel.bernet@ch-open.ch">
+    Marcel Bernet
+    </author>
+
+</widget>
diff -r ad2568075748 -r efd4f8b15e66 Web-APP/index.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Web-APP/index.html	Thu Apr 02 07:25:02 2015 +0000
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<title>Simple Web-App</title>
+</head>
+<body>
+<form>
+    <h3>Klassik Web-App</h3>
+       <input type="submit" formmethod="get" formaction="http://192.168.178.63/rpc/led1/write 1" value="LED1 On">
+       <input type="submit" formmethod="get" formaction="http://192.168.178.63/rpc/led1/write 0" value="LED1 Off"><br>
+       <input type="submit" formmethod="get" formaction="http://192.168.178.63/rpc/led2/write 1" value="LED2 On">
+       <input type="submit" formmethod="get" formaction="http://192.168.178.63/rpc/led2/write 0" value="LED2 Off">
+</form>
+</body>
+</html>
\ No newline at end of file