Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.48k stars 278 forks source link

Decrease in size #156

Closed shekarpathi closed 2 years ago

shekarpathi commented 2 years ago

Currently I see that the compiled size is slightly over half a MB. This makes it impossible to do OTA on a 1MB ESP8266 chip.

I was wondering if this project can be shrunk for a 2 GPIO based, ESP8266, where I need only a ON and a OFF. And the compiled binary is around 400KB.

Thanks.

shekarpathi commented 2 years ago

Ignore this, found the answer, it was in your documentation had to

undef ESP_GE_DOUBLE_SCALARMULT_VARTIME_LOWMEM

define CURVE25519_SMALL

define ED25519_SMALL

Thanks a ton.