maximkulkin / esp-homekit

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

Storage as real storage #101

Closed beckmx closed 5 years ago

beckmx commented 5 years ago

Hello, I would like to add some values, do you think I can use the storage methods in the storage.h, from what I saw, I can create a "fake" accesory and populate it with something, right? or should I need to use another library?

Greetings!

maximkulkin commented 5 years ago

First, it is much easier to use a library instead of trying to use weird tools to achieve same. Also, if you just want to store a couple of values, you can use sysparam API for that. Here is me using sysparams to store wifi-config settings: https://github.com/maximkulkin/esp-wifi-config/blob/master/src/wifi_config.c#L780-L795