You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling the Original Sourcecode and uploading it into the device, i always get un exception within htmlProzessor.h code, reporting there is a problem accessing the PROGMEM Code from the html page, seems to be HEAD and/or Footer.
After using FPSTR(...) method it worked.
htmlprozessor.h
if (var == F("pre_head_template"))
return (FPSTR(HTML_HEAD));
if (var == F("pre_foot_template"))
return (FPSTR(HTML_FOOT));
if (var == F("pre_software_version"))
Have a look into https://arduino-esp8266.readthedocs.io/en/latest/PROGMEM.html
RAM usage remains the same, but exception disappears.
Please adjust your source code accordingly.
regards Rolf
Screenshots / Fotos
empty screen ...
Steps To Reproduce
Calling Main web-page and see serial monitor in visuao code pio project .
Hope code can help for more details.
Latest version 2.0.0.
Got same issue in some previous version, causing the issue with thew footer html.
I found another issue.
In case of no EP is connected, the new epwroker loops in a very hight frequency, 5 - 10 time a second, which is useless.
Better put a delay of 1-5 sec after notify client in case of getepdata() returns false.
Hello,
thanks for this great report.
thats interesting, i never had problems with the progmem.
so i have made the changes, please check the branch https://github.com/softwarecrash/EPEver2MQTT/tree/bugfix-2.0.0 for the progmem error and the notification speed when no device is connected
edit:
habe gerade gesehen das dein profil aus deutschland kommt, ich vermute mal deutsch ist auch okay?
wenn du änderungen oder verbesserungen hast kannst du auch sehr gern ein PR erstellen
Is there an existing issue for this?
Used Hardware?
Wemos D1 Mini
What happened?
When compiling the Original Sourcecode and uploading it into the device, i always get un exception within htmlProzessor.h code, reporting there is a problem accessing the PROGMEM Code from the html page, seems to be HEAD and/or Footer.
After using FPSTR(...) method it worked.
htmlprozessor.h
if (var == F("pre_head_template"))
return (FPSTR(HTML_HEAD));
if (var == F("pre_foot_template"))
return (FPSTR(HTML_FOOT));
if (var == F("pre_software_version"))
Have a look into https://arduino-esp8266.readthedocs.io/en/latest/PROGMEM.html
RAM usage remains the same, but exception disappears.
Please adjust your source code accordingly.
regards Rolf
Screenshots / Fotos
empty screen ...
Steps To Reproduce
Calling Main web-page and see serial monitor in visuao code pio project .
Hope code can help for more details.
Latest version 2.0.0.
Got same issue in some previous version, causing the issue with thew footer html.
Regards Rolf
Version
1.x.x and above
Relevant livejson output
...
What browsers are you seeing the problem on?
Chrome
The text was updated successfully, but these errors were encountered: