tayfunulu / WiFiManager

WiFi manager for ESP8266 - ESP12 - ESP32 - micropython
MIT License
345 stars 104 forks source link

fix for #5 out of memory on esp8266 #7

Closed trailhead closed 6 years ago

trailhead commented 6 years ago

Fix for https://github.com/tayfunulu/WiFiManager/issues/5

Modified handle_root to send the response incrementally with as little memory required as possible. I was able to connect with 12 SSIDs in the list. At some point this will break with more SSIDs, but it's a start.

According to some research you don't need to send Content-Length if you call client.close() when finished. So I made that optional in send_header()

tayfunulu commented 6 years ago

i applied. thanks.