maximkulkin / esp-homekit

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

Connecting with QR code #182

Closed emresenyuva closed 3 years ago

emresenyuva commented 3 years ago

why wifi info is needing?, can we connect with just QR code?

renandw commented 3 years ago

This firmware is using HAP (HomeKit accessory protocol) over IP so Iit needs constant Wi-Fi connection.

maximkulkin commented 3 years ago

MFi certified accessories (commercial ones) can use Apple's special onboarding procedure which can find accessories and configure them to join your WiFi network. Unfortunately, non-commercial accessories can not do that.

konifer44 commented 3 years ago

Im using https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/provisioning/wifi_provisioning.html to send WiFI Credencial Via ESP SoftAP Prov So you no longer need to store WiFi password hardcoded 😊

maximkulkin commented 3 years ago

@konifer44 That's a nice discovery for those of us who run ESP32 (not sure if this is available for ESP8266_RTOS_SDK). For onboarding I'm actually using an esp-wifi-config library that I built. Although it is still not as slick as just scanning a QR code, it allows not having hardcoded WiFi credentials inside firmware.

konifer44 commented 3 years ago

It's very fast and convenient but I had to add button to reset WiFi credentials if you want connect to another network 😊 Here is my switch with my own PCB ![Uploading 102681540...]