maximkulkin / esp-homekit

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

Add configuration option for custom / generated password #1

Closed maximkulkin closed 6 years ago

maximkulkin commented 6 years ago

Right now password is hardcoded to be "111-11-111". This should be configurable: developer should be able to either provide a custom password or specify that random password should be generated each time. In later case, there should be a configuration option to provide password callback, so that random password could be exposed to user during pairing process.

HomeACcessoryKid commented 6 years ago

make overload parameters in the home kit_server_init so you can set things like password, category and more. At evaluation moment, if value is not set, make it the default. My AiLight contains an example of setting the accessory category like this

HomeACcessoryKid commented 6 years ago

another option is that the homekit_accessory_t becomes a member of homekit_config_t which can also carry other config items as above

maximkulkin commented 6 years ago

Done