maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.1k stars 168 forks source link

EEPROM #137

Closed vvrec closed 4 years ago

vvrec commented 4 years ago

If I understand correctly - EEPROM can not be used in the main sketch? Or are only certain addresses available for read/write?

maximkulkin commented 4 years ago

I assume, by EEPROM you mean flash. Yes, you can write to any address, but as far as I understand there is some kind of protection of current running code (although it might differ from SDK to SDK).

vvrec commented 4 years ago

Yes, I mean memory. The problem is that if I use EEPROM.h to remember the last brightness value - after several complete shutdowns and power-ups of the board Home.app on the phone forgets this device. But I can add it again.