Rolling 2020-06-12

This commit is contained in:
jomjol
2020-12-06 08:24:32 +01:00
parent 816f93222b
commit f616643335
22 changed files with 257 additions and 82 deletions

View File

@@ -81,13 +81,30 @@ extern "C" void app_main(void)
std::string ssid = "";
std::string password = "";
std::string hostname = "";
std::string ip = "";
std::string gw = "";
std::string netmask = "";
LoadWlanFromFile("/sdcard/wlan.ini", ssid, password, hostname, ip, gw, netmask);
LoadWlanFromFile("/sdcard/wlan.ini", ssid, password, hostname);
// LogFile.WriteToFile("Startsequence 04");
printf("To use WLan: %s, %s\n", ssid.c_str(), password.c_str());
printf("To set Hostename: %s\n", hostname.c_str());
printf("Fixed IP: %s, Gateway %s, Netmask %s\n", ip.c_str(), gw.c_str(), netmask.c_str());
initialise_wifi(ssid, password, hostname);
if (ip.length() == 0 || gw.length() == 0 || netmask.length() == 0)
{
initialise_wifi(ssid, password, hostname);
}
else
{
initialise_wifi_fixed_ip(ip, gw, netmask, ssid, password, hostname);
}
printf("Netparameter: IP: %s - GW: %s - NetMask %s\n", getIPAddress().c_str(), getGW().c_str(), getNetMask().c_str());
// LogFile.WriteToFile("Startsequence 05");
TickType_t xDelay;