index.shtml 1.48 KB
Newer Older
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 37 38 39 40 41 42 43 44 45 46
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Connected device demo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
  <div class="content">
    <img src="logo.png" style="float:right; height: 50px; border-radius: 3px;">
    <h1>Connected device demo - settings section</h1>

    <p>
      This page is one of the series of examples that show how to make
      devices connected with Mongoose. Here, we create a settings section
      that expose some internal device variables, and allow user to change
      them. They could be some stored in a database, in a file, or in
      firmware RAM. In this example, we store them in RAM, and use two
      variables, one integer and one string. We use SSI
      <code>&lt;!--#call parameter_name --&gt;</code> directive to fetch
      variable values from Mongoose.
    </p>

    <h1>Settings section</h1>
    <form method="POST" action="/save">
      <fieldset>
        <legend>Device settings</legend>
        <label>Setting 1:</label> <input type="text"
          name="setting1" value="<!--#call setting1 -->" >
        <label>Setting 2:</label> <input type="text"
          name="setting2" value="<!--#call setting2 -->" >

        <div>
          <button type="submit">Save Settings</button>
        </div>

      </fieldset>
    </form>

    <h1>Dashboard section</h1>
    <p>Nothing here yet</p>

  </div>
</body>
</html>