Mixiaoxiao / Arduino-HomeKit-ESP8266

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

esp01s possible? #253

Closed AAfetisov closed 1 month ago

AAfetisov commented 1 month ago

its flashing allrigh and apparently even connects to wifi, but then it wont appear in homekit no matter what arduino board settings I try. Getting this on serial:

any help is welcome

���............................scandone
state: 0 -> 2 (b0)
.state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt 
...........
connected with Myhome_wifi2.4, channel 6
dhcp client start...
.....ip:192.168.1.107,mask:255.255.255.0,gw:192.168.1.1
.
WiFi connected, IP: 192.168.1.107
>>> [   6043] HomeKit: Starting server
!!! [   6049] HomeKit: Failed to read HomeKit storage magic
>>> [   6054] HomeKit: Formatting HomeKit storage at 0x7fb000
!!! [   6059] HomeKit: Failed to erase HomeKit storage
>>> [   6064] HomeKit: Resetting HomeKit storage
!!! [   6069] HomeKit: Failed to reset HomeKit storage
>>> [   6074] HomeKit: Generated new accessory ID: 1C:A7:33:39:3E:85
!!! [   6080] HomeKit: Failed to write accessory ID to HomeKit storage
>>> [   6132] HomeKit: Generated new accessory key
!!! [   6137] HomeKit: Failed to write accessory key to HomeKit storage
>>> [   6144] HomeKit: Preiniting pairing context
>>> [   6148] HomeKit: Using user-specified password: 111-11-111
>>> [   6170] HomeKit: Call s_mp_exptmod in integer.c, original winsize 6
>>> [  12672] HomeKit: Call s_mp_exptmod in integer.c, original winsize 5
pm open,type:2 0
>>> [  16006] HomeKit: Preinit pairing context success
>>> [  16011] HomeKit: Configuring MDNS
>>> [  16016] HomeKit: MDNS begin: Switch, IP: 192.168.1.107
>>> [  16023] HomeKit: Init server over
Free heap: 40280, HomeKit clients: 0
Free heap: 40984, HomeKit clients: 0
Free heap: 40984, HomeKit clients: 0

tried all sorts of flash sizes too 2024-05-18-00 38@2x

AAfetisov commented 1 month ago

solved thanks to chatgpt who advised to set flashsize 1M (no SPIFFS)