dl9rdz / rdz_ttgo_sonde

280 stars 100 forks source link

Meaning of WiFi mode #72

Closed maehw closed 3 years ago

maehw commented 3 years ago

This is not really a bug, rather a request for clarification

Version and specific configuration:

Additional context What is the meaning of the options for the WiFi modes? In the web interface you can select 0/1/2/3 with a default of 3. I did not find any hint in the repo nor in the wiki (had expected it in https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/Wifi-configuration). Is this setting irrelevant/obsolete?

Edit: is it meant as an index into the WiFi settings table, i.e. allows values 1..9?

dl9rdz commented 3 years ago

See https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/Software-configuration

dl9rdz commented 3 years ago

Oh, I can add a minor detail that is not in the documentation. WiFi mode 1 runs in the background, and the ESP32 is a dual core CPU, so this will result in both cores doing dynamic memory allocation in parallel. This is basically fine, but may cause memory fragmentation, and in some rare cases may result in out-of-memory situations. In my display driver, this may result in the display not being updated, and in the TCP/IP stack or the web server this may result in a crash. This is very rare and usually should not be a problem. but if you see problems (most likely if you use the edit.html thingy to modify the screen layout) then you might want try wifi mode 3 instead of 1.

maehw commented 3 years ago

Thanks for the clarification.

I did not see the forest for the trees. The documentation in https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/Software-configuration is perfectly find, however I would have expected it in the https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/Wifi-configuration article.

And I did not select the "Wiki" pages when searching the repo (but had the default selection left to "Code"). https://github.com/dl9rdz/rdz_ttgo_sonde/search?q=wifi+mode&type=wikis

Sorry for the inconvenience, should have read the manual more carefully. ;)