summaryrefslogtreecommitdiffstats
path: root/htdocs/index.html
diff options
context:
space:
mode:
authorronan <ronan.lemartret@iot.bzh>2019-10-10 11:44:25 +0200
committerronan <ronan.lemartret@iot.bzh>2019-11-04 11:47:06 +0100
commit895e65610c78eb883b70c971c2c29e300ca063d3 (patch)
tree2c67a5d3c45204dd8cb86192d5a51a4cb03328f2 /htdocs/index.html
parent7a5a796cdbd2658cf6f621aab209849818a67839 (diff)
- Add dependency on agl-libafb-helpers, very useful on agl binding. - Add subscription button on html interface. - After starting the timer, you can subscribe and so unsubscribe to a timer event. - Update the README.md. Bug-AGL: SPEC-2778 Signed-off-by: ronan <ronan.lemartret@iot.bzh> Change-Id: I8cc08a191a93972082060d267276df467b053589 Signed-off-by: ronan <ronan.lemartret@iot.bzh>
Diffstat (limited to 'htdocs/index.html')
-rw-r--r--htdocs/index.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/htdocs/index.html b/htdocs/index.html
index ffefe20..5dac015 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -1,5 +1,7 @@
<html>
+<meta charset="utf-8" />
+
<head>
<title>Simple Helloworld binding Test</title>
<link rel="stylesheet" href="iotbzh-Binding.css">
@@ -15,12 +17,14 @@
<h1>Simple Helloworld binding Test</h1>
<button id="connected" onclick="init()">Binder WS Fail</button>
- <button id="mnitoring" onclick="window.open('/monitoring/monitor.html','_monitor_ctl')">Debug/Monitoring</a></button>
+ <button id="monitoring"
+ onclick="window.open('/monitoring/monitor.html','_monitor_ctl')">Debug/Monitoring</a></button>
<br><br>
<div>
- <button onclick="callbinder('helloworld','ping' ,{args:{'var1':1234, 'var2':'Test ping'}});">Send ping</button></li>
+ <button onclick="callbinder('helloworld','ping' ,{args:{'var1':1234, 'var2':'Test ping'}});">Send ping</button>
+ </li>
<button onclick="callbinder('helloworld','testargs' ,{'cezam': 'open'});">Send testargs OK</button></li>
@@ -32,6 +36,12 @@
</div>
<br>
+ <div>
+ <button onclick="callbinder('helloworld-event','startTimer' ,{});">Start
+ timer</button></li>
+ <button onclick="callbinder('helloworld-event','subscribe' ,);">Subscribe Event</button></li>
+ <button onclick="callbinder('helloworld-event','unsubscribe' ,);">Unsubscribe Event</button></li>
+ </div>
<div id="main" style="visibility:hidden">
<ol>
@@ -46,4 +56,4 @@
</li>
</ol>
</div>
-</body>
+</body> \ No newline at end of file