Closed gabest11 closed 10 months ago
I think this->stream_ptr_ = std::make_unique<WiFiClient>();
is skipped in OtaHttpArduino::http_init()
when https is disabled. The ifdef logic is wrong.
You are doubly right:
esp8266_disable_ssl_support
#ifdef logic
The last problem is probably solved in the disable_ssl
branch. Can you check it ?
external_components:
- source: github://oarcher/piotech@disable_ssl
Comfirmed. That one works. About the same firmware size.
On my side, with a minimal config, the firmware size with ssl is 587K, and 480K without. So it only save ~100K.
I also mention https://github.com/oarcher/piotech/issues/15#issuecomment-1808779181 , where there is a solution to save ram (not flash)
That 100K saving is absolutely necessary for a 1M device. I'm running these plugs with minimal config and dependencies.
lib_deps =
esphome/ESPAsyncTCP-esphome@2.0.0
esphome/ESPAsyncWebServer-esphome@3.1.0
DNSServer
ESP8266WiFi
ESP8266mDNS
heman/AsyncMqttClient-esphome@2.0.0
bblanchon/ArduinoJson@6.18.5
ESP8266HTTPClient
${common.lib_deps}
Thank for creating this, it's very useful for mqtt. It works on all my esp boards except this smart socket for some reason. esp8266: / board: esp8285 with 1M flash. I already had to use esp8266_disable_ssl_support to keep it under 50%, I don't think it's possible without it on a 1M board. Maybe it is worth mentioning in the readme, it took me some time to find this config option. Anyhow, the normal wireless ota update of esphome has no problem when it's in the same network as my server (IIS reverse proxy to a VM running home assistant).
firmware.bin is not there, it contains my wifi credentials, but I can assure you even wget can download it.