Add poweroff function & status LED. Include 3D files for Seeed XIAO
This commit is contained in:
@@ -452,6 +452,9 @@ document.getElementById('resetBtn').addEventListener('click', () => {
|
||||
localStorage.clear();
|
||||
window.location.reload();
|
||||
});
|
||||
document.getElementById('powerOff').addEventListener('click', () => {
|
||||
navigator.sendBeacon("/poweroff");
|
||||
});
|
||||
setParams();
|
||||
connect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user