mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 17:06:25 +01:00
esp32 deep sleep support
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -297,6 +297,9 @@ void init_web() {
|
||||
if (strcmp(cmdValue, "reset") == 0) {
|
||||
sendTagCommand(mac, CMD_DO_RESET_SETTINGS, !taginfo->isExternal);
|
||||
}
|
||||
if (strcmp(cmdValue, "deepsleep") == 0) {
|
||||
sendTagCommand(mac, CMD_DO_DEEPSLEEP, !taginfo->isExternal);
|
||||
}
|
||||
request->send(200, "text/plain", "Ok, done");
|
||||
} else {
|
||||
request->send(200, "text/plain", "Error: mac not found");
|
||||
|
||||
@@ -476,7 +476,9 @@
|
||||
"options": {
|
||||
"0": "Reboot",
|
||||
"1": "Scan Channels",
|
||||
"2": "Clear settings"
|
||||
"2": "Clear settings",
|
||||
"3": "Enter Deep Sleep"
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
<button id="cfgclrpending">clear pending</button>
|
||||
<button id="cfgtagreboot">reboot</button>
|
||||
<button id="cfgscan">scan</button>
|
||||
<button id="cfgdeepsleep">deep sleep</button>
|
||||
<button id="cfgreset">reset settings</button>
|
||||
<button id="cfgdelete" title="remove"><img src="data:image/gif;base64,R0lGODlhEAAQAPMAANXV1e3t7d/f39HR0dvb2/Hx8dTU1OLi4urq6mZmZpmZmf///wAAAAAAAAAAAAAAACH5BAEAAAwALAAAAAAQABAAAARBkMlJq71Yrp3ZXkr4WWCYnOZSgQVyEMYwJCq1nHhe20qgCAoA7QLyAYU7njE4JPV+zOSkCEUSFbmTVPPpbjvgTAQAOw== "></button>
|
||||
</p>
|
||||
|
||||
@@ -454,6 +454,10 @@ $('#cfgscan').onclick = function () {
|
||||
sendCmd($('#cfgmac').dataset.mac, "scan");
|
||||
}
|
||||
|
||||
$('#cfgdeepsleep').onclick = function () {
|
||||
sendCmd($('#cfgmac').dataset.mac, "deepsleep");
|
||||
}
|
||||
|
||||
$('#cfgreset').onclick = function () {
|
||||
sendCmd($('#cfgmac').dataset.mac, "reset");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user