]> git.piffa.net Git - sketchbook_andrea/blobdiff - iot/blink_iot/html.h
PWM correzione
[sketchbook_andrea] / iot / blink_iot / html.h
diff --git a/iot/blink_iot/html.h b/iot/blink_iot/html.h
new file mode 100644 (file)
index 0000000..bb94365
--- /dev/null
@@ -0,0 +1,34 @@
+static const char* head = R"foo(
+HTTP/1.1 200 OK
+Content-Type: text/html
+
+<head>
+<title>IoT Blink</title>
+<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" >
+</head>
+)foo";
+
+static const char* body = R"foo(
+<body>
+  <div class="container">
+  <div class="jumbotron">
+    <h1>Arduino IoT Example</h1>      
+    <p>This WebApp turns On / Off the onboard LED with Arduino code.</p>
+  </div>
+  <br><center>
+<a href="/ON""><button type="button" class="btn btn-primary btn-lg">Turn On </button></a>
+<a href="/OFF""><button type="button" class="btn btn-secondary btn-lg">Turn Off </button></a>
+<br/><br/>
+)foo";
+  
+static const char footer[]   = R"foo(
+</center>
+</div>
+<!-- Optional JavaScript -->
+    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
+    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
+    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" ></script>
+    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" ></script>
+</body>
+</html>
+)foo";