Update Restart Hostname

This commit is contained in:
jomjol
2021-03-21 20:56:30 +01:00
parent a0ebf354b1
commit c6ae989b82
9 changed files with 15 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ If you would like to support the developer with a cup of coffee you can do that
##### Rolling - (2021-03-21)
* Bug fixing in `html.zip`
* Bug fixing: restart after renaming hostname in `config.ini` did not work reliable
* based on v6.4.0
##### 6.4.0 Image Processing in Memory - (2021-03-20)

View File

@@ -292,11 +292,14 @@ bool ChangeHostName(std::string fn, std::string _newhostname)
for (int i = 0; i < neuesfile.size(); ++i)
{
printf(neuesfile[i].c_str());
fputs(neuesfile[i].c_str(), pFile);
}
fclose(pFile);
printf("*** Update hostname done ***\n");
return true;
}

View File

@@ -9,4 +9,5 @@ static const char *TAGPARTOTA = "server_ota";
void register_server_ota_sdcard_uri(httpd_handle_t server);
void CheckOTAUpdate();
void doReboot();
void hard_restart();

View File

@@ -382,6 +382,9 @@ bool ClassFlowControll::ReadParameter(FILE* pfile, string& aktparamgraph)
{
// reboot notwendig damit die neue wlan.ini auch benutzt wird !!!
fclose(pfile);
printf("do reboot\n");
esp_restart();
hard_restart();
doReboot();
}
}

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="3b3d924";
const char* GIT_REV="a0ebf35";
const char* GIT_TAG="";
const char* GIT_BRANCH="master";
const char* BUILD_TIME="2021-03-17 22:46";
const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2021-03-21 20:49";

View File

@@ -13,7 +13,7 @@ extern "C"
#include "Helper.h"
#include <fstream>
const char* GIT_BASE_BRANCH = "master - v6.3.1 - 2020-03-16";
const char* GIT_BASE_BRANCH = "master - v6.4.0 - 2020-03-20";
const char* git_base_branch(void)

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="3b3d924";
const char* GIT_REV="a0ebf35";
const char* GIT_TAG="";
const char* GIT_BRANCH="master";
const char* BUILD_TIME="2021-03-17 22:46";
const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2021-03-21 20:49";

Binary file not shown.

Binary file not shown.