Version 1.3
Added relay work modes.
This commit is contained in:
@ -29,6 +29,7 @@ function loadBlock() {
|
||||
}
|
||||
document.getElementsByTagName('body')[0].innerHTML = newString;
|
||||
setFirmvareValue('version', 'firmware');
|
||||
setGpioValue('workModeSelect', 'workMode');
|
||||
setGpioValue('relayPinSelect', 'relayPin');
|
||||
setGpioValue('relayPinTypeSelect', 'relayPinType');
|
||||
setGpioValue('ledPinSelect', 'ledPin');
|
||||
@ -71,7 +72,8 @@ function saveSetting(submit) {
|
||||
+ "&extButtonPin=" + getSelectValue('extButtonPinSelect')
|
||||
+ "&extButtonPinType=" + getSelectValue('extButtonPinTypeSelect')
|
||||
+ "&sensorPin=" + getSelectValue('sensorPinSelect')
|
||||
+ "&sensorType=" + getSelectValue('sensorTypeSelect');
|
||||
+ "&sensorType=" + getSelectValue('sensorTypeSelect')
|
||||
+ "&workMode=" + getSelectValue('workModeSelect');
|
||||
sendRequest(submit, server);
|
||||
alert("Please restart device for changes apply.");
|
||||
}
|
||||
|
@ -29,6 +29,15 @@
|
||||
title="ESP-NOW network name (1 to 20 characters)" />
|
||||
</div>
|
||||
|
||||
<div class="wrapper">
|
||||
<p class="text-select">Work mode:</p>
|
||||
<input id="workMode" value="{{workMode}}" hidden />
|
||||
<p><select id="workModeSelect">
|
||||
<option value="0">NORMAL</option>
|
||||
<option value="1">REVERSE</option>
|
||||
</select></p>
|
||||
</div>
|
||||
|
||||
<div class="wrapper">
|
||||
<p class="text-select">Relay GPIO:</p>
|
||||
<input id="relayPin" value="{{relayPin}}" hidden />
|
||||
|
Reference in New Issue
Block a user