You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
1.9 KiB
103 lines
1.9 KiB
<h1>Application settings</h1> |
|
|
|
<h3>MQTT settings</h3> |
|
<form id="app-settings" action="/app" data-values-src="/app"> |
|
|
|
<p> |
|
<label>MQTT host address: |
|
<input type="text" name="mqhost"> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label>API topic: |
|
<input type="text" name="mqapi"> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label>Heartbeat topic: |
|
<input type="text" name="mqhb"> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label>Heartbeat interval (sec) |
|
<input type="number" name="mqhbs"> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label>User name: |
|
<input type="text" name="mquser"> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label>Password: |
|
<input type="password" name="mqpass"> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label class="label">Use TLS: |
|
<select class="select" name="mqtls"> |
|
<option value="0">No</option> |
|
<option value="1">Yes</option> |
|
</select> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label class="label">Override device name: |
|
<select class="select" name="ovdn"> |
|
<option value="0">No</option> |
|
<option value="1">Yes</option> |
|
</select> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label>Custom device name: |
|
<input type="text" name="cdn"> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<label>Certificate data (begin to end, tags included): |
|
<p><textarea name="cacert"></textarea></p> |
|
</label> |
|
</p> |
|
|
|
<p> |
|
<button type="button" class="send">SEND</button> |
|
</p> |
|
|
|
NOTE: device reboot is required |
|
|
|
</form> |
|
|
|
<div class="col-md-offset-1"> |
|
<hr /> |
|
</div> |
|
|
|
|
|
<h3>Restore defaults</h3> |
|
<form id="restore-form" action="/app"> |
|
<input type="hidden" name="restore_default" value="1" /> |
|
<p> |
|
<button type="button" class="send">RESTORE DEFAULT SETTINGS</button> |
|
</p> |
|
</form> |
|
|
|
<div class="col-md-offset-1"> |
|
<hr /> |
|
</div> |
|
|
|
<h3>Reboot</h3> |
|
<form id="reboot-form" action="/sys/reboot"> |
|
<input type="hidden" name="reboot" value="1" /> |
|
<p> |
|
<button type="button" class="send">REBOOT</button> |
|
</p> |
|
</form>
|
|
|