ota update

This commit is contained in:
IoT Manager
2023-10-05 19:10:32 +02:00
parent 1b9adefde6
commit 173c3ab9d3
3 changed files with 9 additions and 3 deletions

View File

@@ -1207,6 +1207,11 @@
}
}
function updateBuild(path) {
wsSendMsg(selectedWs, "/update|" + path);
}
//depricated
function startUpdate(all) {
if (choosingVersion !== undefined) {
//if (choosingVersion === errorsJson.bver) {
@@ -1343,7 +1348,7 @@
</Route>
<Route path="/profile">
<Profile show={pageReady.profile} myProfileJson={myProfileJson} userdata={userdata} />
<Profile show={pageReady.profile} myProfileJson={myProfileJson} userdata={userdata} updateBuild={(path) => updateBuild(path)} />
</Route>
<Route path="/login">
<Login show={true} />