-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
36 lines (33 loc) · 1.27 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!--
\|/ MQTTerra
* @ Authors: Andre Schlichting & Kaue Cano
* @ Create Time: 2019-06-25 21:01:19
* @ Modified by: canokaue
* @ Modified time: 2019-06-27 10:52:56
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>mqtt-demo: A simple web application that can subscribe to topics from an MQTT broker over websockets</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.2/mqttws31.min.js" type="text/javascript"></script>
<script src="assets/js/demo.js" type="text/javascript"></script>
</head>
<body>
<div class="wrapper">
<h1>mqtt-demo</h1>
<form id="connection-information-form">
<b>Hostname or IP Address:</b>
<input id="host" type="text" name="host" value="test.mosquitto.org"><br>
<b>Port:</b>
<input id="port" type="text" name="port" value="8080"><br>
<b>Topic:</b>
<input id="topic" type="text" name="topic" value="#"><br><br>
<input type="button" onclick="startConnect()" value="Connect">
<input type="button" onclick="startDisconnect()" value="Disconnect">
</form>
<div id="messages"></div>
</div>
</body>
</html>