TD
Today i copied the new mega-20210802 github code to my local arduine-ide settings and recompiled the code. After two compile error corrections Its running okay. Many thanks for the WIFI stabilization and the "MQTT quote" correction from Ton. below my input. Don't how how to get it in the Github for review/correction..
1) The ConfigPage.cpp file
out-commented line 134. It was not found by the compiler...
addFormHeader(F("Main Settings"));
Settings.Name[25] = 0;
SecuritySettings.Password[25] = 0;
addFormTextBox(F("Unit Name"), F("name"), Settings.Name, 25);
// addFormNote(String(F("Hostname: ")) + NetworkCreateRFCCompliantHostname()); <----- line 134 removed.....
addFormNumericBox(F("Unit Number"), F("unit"), Settings.Unit, 0, UNIT_NUMBER_MAX);
addFormCheckBox(F("Append Unit Number to hostname"), F("appendunittohostname"), Settings.appendUnitToHostname());
addFormPasswordBox(F("Admin Password"), F("password"), SecuritySettings.Password, 25);
addFormSubHeader(F("Wifi Settings"));
2) The update reported before in file _CPlugin_Helper.cpp was not in the new mega 20210802.
// Add request header as fall back.
// When adding another "accept" header, it may be interpreted as:
// "if you have XXX, send it; or failing that, just give me what you've got."
http.addHeader(F("Accept"), F("*/*;q=0.1"));
delay(0);
#if defined(CORE_POST_2_6_0) || defined(ESP32)
http.begin(client, host, port, uri, false); // HTTP
#else
http.begin(client, host, port, uri); <--- line 531 "client" update
#endif
my settings:
System Info Copy info to clipboard (⋄)
Unit Number: 2
Local Time: 2021-08-07 20:25:14
Time Source: NTP
Uptime: 0 days 0 hours 50 minutes
Load: 13.50% (LC=1156)
CPU Eco Mode: false
Boot: Cold Boot (0)
Reset Reason: External System
Last Action before Reboot: Background Task
SW WD count: 0
Memory
Free RAM: 20080
Heap Max Free Block: 18104
Heap Fragmentation: 10%
Free Stack: 3648
Network
IP Config: Static
IP / Subnet: 192.168.50.9 / 255.255.255.0
Gateway: 192.168.50.1
Client IP: 192.168.50.101
DNS: 192.168.50.1 / (IP unset)
Allowed IP Range: 192.168.50.0 - 192.168.50.255
Connected: 50 m 22 s
Number Reconnects: 0
WiFi

<
http://www.letscontrolit.com/wiki/index.php/Wifi>
WiFi Connection: 802.11n (RSSI -43 dBm)
SSID: Wifi_LoT@RT_MIK (08:55:31:xxxxxxx)
Channel: 9
Encryption Type: WPA2/PSK
Last Disconnect Reason: (1) Unspecified
Configured SSID1: Wifi_LoT@RT_MIK
Configured SSID2: Wifi_147@RT_ASU
STA MAC: 48:3F:DA:xxxxxxx
AP MAC: 4A:3F:DA:xxxxxxx
WiFi Settings
Force WiFi B/G: false
Restart WiFi Lost Conn: true
Force WiFi No Sleep: true
Periodical send Gratuitous ARP: false
Connection Failure Threshold: 0
Max WiFi TX Power: 17.50
Current WiFi TX Power: 0.00
WiFi Sensitivity Margin: 3
Send With Max TX Power: false
Extra WiFi scan loops: 0
Periodical Scan WiFi: true
Use Last Connected AP from RTC: false
Firmware
Build:⋄ 20114 - Mega
System Libraries:⋄ ESP82xx Core 3.0.2, NONOS SDK 2.2.2-dev(38a443e),
LWIP: 2.1.2
Git Build:⋄ My Build: Aug 7 2021 19:12:42
Plugin Count:⋄ 16 [Normal]
Build Origin: Self built
Build Time:⋄ Aug 7 2021 19:12:35
Binary Filename:⋄ firmware.bin
Build Platform:⋄
Git HEAD:⋄
System Status
Syslog Log Level: None
Serial Log Level: Info
Web Log Level: None
Network Services
Network Connected: ✔
NTP Initialized: ✔
MQTT Client Connected: ✔
ESP Board
ESP Chip ID: 10760502 (0xA43136)
ESP Chip Frequency: 80 MHz
ESP Chip Model: ESP8266
ESP Chip Cores: 1
ESP Board Name: ESP8266_NODEMCU_ESP12E
Storage
Flash Chip ID: Vendor: 0xD8 Device: 0x4016
Flash Chip Real Size: 4096 kB
Flash IDE Size: 4096 kB
Flash IDE Speed: 40 MHz
Flash IDE Mode: DIO
Flash Writes: 26 daily / 36 boot
Sketch Size: 780 kB (2288 kB free)
Max. OTA Sketch Size: 1019 kB (1044464 bytes)
OTA possible: true
OTA 2-step Needed: false
SPIFFS Size: 934 kB (843 kB free)
Page size: 256
Block size: 8192
Number of blocks: 116
Maximum open files: 5
Maximum path length: 32
Powered by Let's Control It <
http://www.letscontrolit.com/>
community
Build: firmware.bin Aug 7 2021
<
https://github.com/letscontrolit/ESPEasy/releases>