Skip to content

Instantly share code, notes, and snippets.

Created September 27, 2022 09:54
What would you like to do?
TEK303 Mqtt example HTML
<!doctype html>
<html lang="en" data-theme="dark"/>
<meta charset="utf-8">
<script src="" type="text/javascript"></script>
<script src="./secret.js" type="text/javascript"></script>
<script src="./mqtt.js" type="text/javascript"></script>
<title>MQTT Demo</title>
<link rel="stylesheet" href="">
<main class="container">
<form class="grid">
<p><input type="text" id="server" placeholder="status"></p>
<p><input type="text" id="topic" placeholder="status"></p>
<p><input type="text" id="payload" placeholder="send 0 or 1"></p>
<p><button type="submit" id="button" aria-label="Example button" onclick="event.preventDefault()">Waiting for data</button></p>
<footer><p>CSS by <a href=""></a></p></footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment