GithubHelp home page GithubHelp logo

younghyunjo / esp32-homekit Goto Github PK

View Code? Open in Web Editor NEW
445.0 445.0 124.0 355 KB

ESP-32 implementation of Apple Homekit Accessory Protocol(HAP)

License: Apache License 2.0

C 99.50% C++ 0.09% Makefile 0.41%
accessory apple esp32 hap homekit iot

esp32-homekit's People

Contributors

yene avatar younghyunjo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32-homekit's Issues

Change license to Apache license v2

GPL is not really usable for anything but non-commercial maker projects.
This library could get more attention if it is licensed under a BSD-like license like the Apache v2 license or MIT License.

cannot compile

I followed the documentation and installed esp-idf. I rarely use make

cd examples/switch
make

Makefile:8: /make/project.mk: No such file or directory
make: *** No rule to make target '/make/project.mk'. Stop.

Adding an example?

Is it possible to modify the example switch -> 2-Gang pwm dimmer?
Thanks for the great work.

Float values for certain characteristics

Dear Younghyunjo,

after my first experiments looked good, I went on to adapt the example to my needs. However, I encountered the problem, that it is impossible to hand over float values in the same way you hand over the boolean value for the on/off state of the LED.

What you are using is a void pointer, or a cast to it. This is only possible for integer types, and throws an error for floating point types.

I saw, that in your commit f17edcb yesterday, you changed the type handling of different characteristics, so you seem to be aware that different characteristics work on different types. But how can we retrieve and return those (especially floating point) values in the callbacks?

"No Response" with iOS 14 devices

I've been using some accessories built with esp32-homekit for a while, but after updating my Apple devices to iOS/iPadOS 14 they appear as "No Response" in the Home app.

Is anyone experiencing the same issue?

iOS 12 beta signature failed

HAP: HTTP request from 192.168.1.241:54491: POST /pair-setup
[PAIR-SETUP] STATE:5tlv_decode failed. type:10
tlv length:50 0x320x01 0x24 0x46 0x35 0x34 0x43 0x44 0x36 0x42 0x41 0x2D 0x33 0x39 0x38 0x45 0x2D 0x34 0x36 0x33 0x42 0x2D 0x41 0x30 0x36 0x45 0x2D 0x35 0x35 0x35 0x34 0x36 0x36 0x43 0x44 0x45 0x46 0x37 0x46 0x03 0x20 0xBE 0x4B 0xBC 0xEA 0x47 0xC0 0xA0 0x4E 0x42 0x21 _io
s_device_signature_verify failed
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffbbd18 closed

Any clue what's happen here?

Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Hi younghyunjo and thanks for the great work,

tried out the switch example and for 10min or so it is working,
but then I got en kernel panic and reboot.
i also work on a garage door integration with your basis with the same issue.
I am working with the Espressif esp-idf in version 3.1.3 and with the master branch.
could you please try it tho reproduce and find the issue, I am not able to.
tried also with debug messages on in the hap.c, but I can't see any differences in the messages, maybe its an overflow.
is it normal that the 'HAP: HTTP request from 192.168.178.41:36528: GET /accessories' is called every 10sec?
would be great if you could take a look at the log,
thanks so far,
here is the log:

Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 21184 bytes to 12509...
Wrote 21184 bytes (12509 compressed) at 0x00001000 in 1.1 seconds (effective 153.1 kbit/s)...
Hash of data verified.
Compressed 787536 bytes to 502982...
Wrote 787536 bytes (502982 compressed) at 0x00010000 in 44.4 seconds (effective 141.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1741.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
MONITOR
--- idf_monitor on /dev/cu.SLAB_USBtoUART 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5816
load:0x40078000,len:9188
load:0x40080000,len:6084
0x40080000: _WindowOverflow4 at /Users/dietmar/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

entry 0x4008032c
0x4008032c: _KernelExceptionVector at ??:?

I (29) boot: ESP-IDF v3.1.3 2nd stage bootloader
I (29) boot: compile time 18:58:34
I (38) boot: Enabling RNG early entropy source...
I (38) boot: SPI Speed : 40MHz
I (38) boot: SPI Mode : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (56) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (64) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (71) boot: 2 factory factory app 00 00 00010000 00100000
I (79) boot: End of partition table
I (83) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x206ac (132780) map
I (139) esp_image: segment 1: paddr=0x000306d4 vaddr=0x3ffb0000 size=0x03114 ( 12564) load
I (144) esp_image: segment 2: paddr=0x000337f0 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /Users/dietmar/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (146) esp_image: segment 3: paddr=0x00033bf8 vaddr=0x40080400 size=0x0c418 ( 50200) load
I (175) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x8c16c (573804) map
0x400d0018: _stext at ??:?

I (376) esp_image: segment 5: paddr=0x000cc18c vaddr=0x4008c818 size=0x04298 ( 17048) load
0x4008c818: temprature_sens_read at /home/qgu/git_tree/chip7.1_rtc/board_code/app_test/pp/rtc/rtc_analog.c:10

I (394) boot: Loaded app from partition at offset 0x10000
I (394) boot: Disabling RNG early entropy source...
I (394) cpu_start: Pro cpu up.
I (398) cpu_start: Starting app cpu, entry point is 0x40080fe4
0x40080fe4: call_start_cpu1 at /Users/dietmar/esp/esp-idf/components/esp32/cpu_start.c:232

I (0) cpu_start: App cpu up.
I (408) heap_init: Initializing. RAM available for dynamic allocation:
I (415) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (421) heap_init: At 3FFB9C80 len 00026380 (152 KiB): DRAM
I (427) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (434) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (440) heap_init: At 40090AB0 len 0000F550 (61 KiB): IRAM
I (446) cpu_start: Pro cpu start user code
I (129) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (211) wifi: wifi driver task: 3ffc1890, prio:23, stack:3584, core=0
I (211) wifi: wifi firmware version: 71d6725
I (211) wifi: config NVS flash: enabled
I (211) wifi: config nano formating: disabled
I (211) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (221) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (261) wifi: Init dynamic tx buffer num: 32
I (261) wifi: Init data frame dynamic rx buffer num: 32
I (261) wifi: Init management frame dynamic rx buffer num: 32
I (261) wifi: Init static rx buffer size: 1600
I (271) wifi: Init static rx buffer num: 10
I (271) wifi: Init dynamic rx buffer num: 32
I (361) phy: phy_version: 4008, c9ae59f, Jan 25 2019, 16:54:06, 0, 0
I (361) wifi: mode : sta (30:ae:a4:fe:08:d8)
I (361) SWITCH: wifi_init_sta finished.
I (371) SWITCH: connect to ap SSID:home-sweet-home password:Anastasia30072005
I (491) wifi: n:11 0, o:1 0, ap:255 255, sta:11 0, prof:1
I (1471) wifi: state: init -> auth (b0)
I (1471) wifi: state: auth -> init (8a0)
I (1471) wifi: n:11 0, o:11 0, ap:255 255, sta:11 0, prof:1
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5816
load:0x40078000,len:9188
load:0x40080000,len:6084
0x40080000: _WindowOverflow4 at /Users/dietmar/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

entry 0x4008032c
0x4008032c: _KernelExceptionVector at ??:?

I (29) boot: ESP-IDF v3.1.3 2nd stage bootloader
I (29) boot: compile time 18:58:34
I (38) boot: Enabling RNG early entropy source...
I (38) boot: SPI Speed : 40MHz
I (38) boot: SPI Mode : DIO
I (41) boot: SPI Flash Size : 4MB
I (45) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (56) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (64) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (71) boot: 2 factory factory app 00 00 00010000 00100000
I (79) boot: End of partition table
I (83) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x206ac (132780) map
I (138) esp_image: segment 1: paddr=0x000306d4 vaddr=0x3ffb0000 size=0x03114 ( 12564) load
I (144) esp_image: segment 2: paddr=0x000337f0 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /Users/dietmar/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (146) esp_image: segment 3: paddr=0x00033bf8 vaddr=0x40080400 size=0x0c418 ( 50200) load
I (175) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x8c16c (573804) map
0x400d0018: _stext at ??:?

I (376) esp_image: segment 5: paddr=0x000cc18c vaddr=0x4008c818 size=0x04298 ( 17048) load
0x4008c818: temprature_sens_read at /home/qgu/git_tree/chip7.1_rtc/board_code/app_test/pp/rtc/rtc_analog.c:10

I (393) boot: Loaded app from partition at offset 0x10000
I (393) boot: Disabling RNG early entropy source...
I (394) cpu_start: Pro cpu up.
I (397) cpu_start: Starting app cpu, entry point is 0x40080fe4
0x40080fe4: call_start_cpu1 at /Users/dietmar/esp/esp-idf/components/esp32/cpu_start.c:232

I (0) cpu_start: App cpu up.
I (408) heap_init: Initializing. RAM available for dynamic allocation:
I (415) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (421) heap_init: At 3FFB9C80 len 00026380 (152 KiB): DRAM
I (427) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (433) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (440) heap_init: At 40090AB0 len 0000F550 (61 KiB): IRAM
I (446) cpu_start: Pro cpu start user code
I (129) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (211) wifi: wifi driver task: 3ffc1890, prio:23, stack:3584, core=0
I (211) wifi: wifi firmware version: 71d6725
I (211) wifi: config NVS flash: enabled
I (211) wifi: config nano formating: disabled
I (211) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (221) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (261) wifi: Init dynamic tx buffer num: 32
I (261) wifi: Init data frame dynamic rx buffer num: 32
I (261) wifi: Init management frame dynamic rx buffer num: 32
I (261) wifi: Init static rx buffer size: 1600
I (271) wifi: Init static rx buffer num: 10
I (271) wifi: Init dynamic rx buffer num: 32
I (401) phy: phy_version: 4008, c9ae59f, Jan 25 2019, 16:54:06, 0, 0
I (401) wifi: mode : sta (30:ae:a4:fe:08:d8)
I (401) SWITCH: wifi_init_sta finished.
I (411) SWITCH: connect to ap SSID:home-sweet-home password:xxxxxxxxxxxx
I (531) wifi: n:11 0, o:1 0, ap:255 255, sta:11 0, prof:1
I (1511) wifi: state: init -> auth (b0)
I (1511) wifi: state: auth -> assoc (0)
I (1521) wifi: state: assoc -> run (10)
I (1551) wifi: connected with home-sweet-home, channel 11
I (1561) wifi: pm start, type: 1

I (2231) event: sta ip: 192.168.178.50, mask: 255.255.255.0, gw: 192.168.178.1
I (2231) SWITCH: got ip:192.168.178.50
[IOSDEVICE] ID:1A10F74C-B758-4348-BDE7-B5DAEE42B18A
E (2231) nvs: nothing saved. key:30AEA4FE08D8D1

E (2241) nvs: nothing saved. key:30AEA4FE08D8D2

E (2251) nvs: nothing saved. key:30AEA4FE08D8D3

E (2251) nvs: nothing saved. key:30AEA4FE08D8D4

E (2261) nvs: nothing saved. key:30AEA4FE08D8D5

E (2261) nvs: nothing saved. key:30AEA4FE08D8D6

E (2271) nvs: nothing saved. key:30AEA4FE08D8D7

[HTTPD] Connection 0x3ffbb59c from 192.168.178.41:60968
[HTTPD] MG_EV_RECV
I (6501) HAP: HTTP request from 192.168.178.41:60968: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffbb59c closed
[HTTPD] Connection 0x3ffc9be0 from 192.168.178.20:54090
[HTTPD] MG_EV_RECV
I (8301) HAP: HTTP request from 192.168.178.20:54090: POST /pair-setup
I (8301) SRP: setup_code:053-58-197

I (11581) SRP: INITIALIZED

[INFO][PAIR-SETUP] init
[PAIR-SETUP] STATE:1I (11591) SRP: setup_code:053-58-197

I (14821) SRP: INITIALIZED

[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] Connection 0x3ffc98cc from 192.168.178.41:32828
[HTTPD] MG_EV_RECV
I (21511) HAP: HTTP request from 192.168.178.41:32828: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffc98cc closed
[HTTPD] Connection 0x3ffcbac0 from 192.168.178.41:32924
[HTTPD] MG_EV_RECV
I (36591) HAP: HTTP request from 192.168.178.41:32924: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffcbac0 closed
[HTTPD] MG_EV_CLOSEConnection 0x3ffc9be0 closed
[HTTPD] Connection 0x3ffcaf6c from 192.168.178.41:33016
[HTTPD] MG_EV_RECV
I (51611) HAP: HTTP request from 192.168.178.41:33016: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffcaf6c closed
[HTTPD] Connection 0x3ffcbac0 from 192.168.178.20:54094
[HTTPD] MG_EV_RECV
I (58161) HAP: HTTP request from 192.168.178.20:54094: POST /pair-setup
I (58161) SRP: setup_code:053-58-197

I (61381) SRP: INITIALIZED

[INFO][PAIR-SETUP] init
[PAIR-SETUP] STATE:1I (61381) SRP: setup_code:053-58-197

I (64621) SRP: INITIALIZED

[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] Connection 0x3ffccc70 from 192.168.178.41:33110
[HTTPD] MG_EV_RECV
I (66591) HAP: HTTP request from 192.168.178.41:33110: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffccc70 closed
[HTTPD] MG_EV_RECV
I (67991) HAP: HTTP request from 192.168.178.20:54094: POST /pair-setup
[PAIR-SETUP] STATE:3[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
I (71981) HAP: HTTP request from 192.168.178.20:54094: POST /pair-setup
[PAIR-SETUP] STATE:5[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffcbac0 closed
[HTTPD] Connection 0x3ffc9b74 from 192.168.178.20:54095
[HTTPD] MG_EV_RECV
I (72391) HAP: HTTP request from 192.168.178.20:54095: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
I (72521) HAP: HTTP request from 192.168.178.20:54095: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (72701) HAP: HTTP request from 192.168.178.20:54095: GET /accessories
[MAIN] LED READ
I (72701) HAP: _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (73111) HAP: HTTP request from 192.168.178.20:54095: GET /characteristics
[MAIN] LED READ
I (73111) HAP: _decrypt end 88
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (73211) HAP: HTTP request from 192.168.178.20:54095: PUT /characteristics
I (73211) HAP: _decrypt end 186
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (73421) HAP: HTTP request from 192.168.178.20:54095: PUT /characteristics
I (73421) HAP: _decrypt end 186
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (75301) HAP: HTTP request from 192.168.178.20:54095: GET /characteristics
[MAIN] LED READ
I (75301) HAP: _decrypt end 88
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (75701) HAP: HTTP request from 192.168.178.20:54095: PUT /characteristics
I (75701) HAP: _decrypt end 189
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3ffcfc44 from 192.168.178.32:52054
[HTTPD] MG_EV_RECV
I (75991) HAP: HTTP request from 192.168.178.32:52054: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] Connection 0x3ffcea48 from 192.168.178.27:49376
[HTTPD] MG_EV_RECV
I (76081) HAP: HTTP request from 192.168.178.27:49376: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_RECV
I (76161) HAP: HTTP request from 192.168.178.32:52054: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (76181) HAP: HTTP request from 192.168.178.32:52054: GET /accessories
[MAIN] LED READ
I (76191) HAP: _decrypt end 77
[HTTPD] MG_EV_RECV
I (76191) HAP: HTTP request from 192.168.178.27:49376: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (76211) HAP: HTTP request from 192.168.178.27:49376: GET /accessories
[MAIN] LED READ
I (76221) HAP: _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3ffd02e4 from 192.168.178.28:56514
[HTTPD] MG_EV_RECV
I (77621) HAP: HTTP request from 192.168.178.28:56514: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
I (77921) HAP: HTTP request from 192.168.178.28:56514: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_RECV
I (77931) HAP: HTTP request from 192.168.178.20:54095: GET /characteristics
[MAIN] LED READ
I (77931) HAP: _decrypt end 88
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (77951) HAP: HTTP request from 192.168.178.28:56514: GET /accessories
[MAIN] LED READ
I (77951) HAP: _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3ffd45f0 from 192.168.178.41:33204
[HTTPD] MG_EV_RECV
I (81591) HAP: HTTP request from 192.168.178.41:33204: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd45f0 closed
[HTTPD] MG_EV_RECV
I (85291) HAP: HTTP request from 192.168.178.27:49376: PUT /characteristics
I (85291) HAP: _decrypt end 186
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3ffd4520 from 192.168.178.41:33296
[HTTPD] MG_EV_RECV
I (96601) HAP: HTTP request from 192.168.178.41:33296: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd4520 closed
[HTTPD] Connection 0x3ffd4520 from 192.168.178.41:33390
[HTTPD] MG_EV_RECV
I (111601) HAP: HTTP request from 192.168.178.41:33390: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd4520 closed
[HTTPD] Connection 0x3ffd4520 from 192.168.178.41:33484
[HTTPD] MG_EV_RECV
I (126591) HAP: HTTP request from 192.168.178.41:33484: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd4520 closed
[HTTPD] Connection 0x3ffd4520 from 192.168.178.41:33574
[HTTPD] MG_EV_RECV
I (141601) HAP: HTTP request from 192.168.178.41:33574: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd4520 closed
[HTTPD] Connection 0x3ffd24e0 from 192.168.178.41:33666
[HTTPD] MG_EV_RECV
I (156601) HAP: HTTP request from 192.168.178.41:33666: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd24e0 closed
[HTTPD] Connection 0x3ffd24e0 from 192.168.178.41:33758
[HTTPD] MG_EV_RECV
I (171751) HAP: HTTP request from 192.168.178.41:33758: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd24e0 closed
[HTTPD] Connection 0x3ffd24e0 from 192.168.178.41:33850
[HTTPD] MG_EV_RECV
I (186591) HAP: HTTP request from 192.168.178.41:33850: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd24e0 closed
[HTTPD] Connection 0x3ffd97c4 from 192.168.178.41:33944
[HTTPD] MG_EV_RECV
I (201641) HAP: HTTP request from 192.168.178.41:33944: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd97c4 closed
[HTTPD] Connection 0x3ffd97c4 from 192.168.178.41:34036
[HTTPD] MG_EV_RECV
I (216601) HAP: HTTP request from 192.168.178.41:34036: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd97c4 closed
[HTTPD] Connection 0x3ffdd3fc from 192.168.178.41:34126
[HTTPD] MG_EV_RECV
I (231701) HAP: HTTP request from 192.168.178.41:34126: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffdd3fc closed
[HTTPD] Connection 0x3ffdd3fc from 192.168.178.41:34220
[HTTPD] MG_EV_RECV
I (246701) HAP: HTTP request from 192.168.178.41:34220: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffdd3fc closed
[HTTPD] Connection 0x3ffdd3fc from 192.168.178.41:34310
[HTTPD] MG_EV_RECV
I (261701) HAP: HTTP request from 192.168.178.41:34310: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffdd3fc closed
[HTTPD] Connection 0x3ffdd3fc from 192.168.178.41:34402
[HTTPD] MG_EV_RECV
I (276601) HAP: HTTP request from 192.168.178.41:34402: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffdd3fc closed
[HTTPD] Connection 0x3ffe14a0 from 192.168.178.41:34496
[HTTPD] MG_EV_RECV
I (291691) HAP: HTTP request from 192.168.178.41:34496: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe14a0 closed
[HTTPD] Connection 0x3ffd7b60 from 192.168.178.41:34592
[HTTPD] MG_EV_RECV
I (306601) HAP: HTTP request from 192.168.178.41:34592: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd7b60 closed
[HTTPD] Connection 0x3ffd7b60 from 192.168.178.41:34684
[HTTPD] MG_EV_RECV
I (321621) HAP: HTTP request from 192.168.178.41:34684: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffd7b60 closed
[HTTPD] Connection 0x3ffe4548 from 192.168.178.41:34778
[HTTPD] MG_EV_RECV
I (336701) HAP: HTTP request from 192.168.178.41:34778: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe4548 closed
[HTTPD] Connection 0x3ffe5458 from 192.168.178.41:34866
[HTTPD] MG_EV_RECV
I (351491) HAP: HTTP request from 192.168.178.41:34866: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe5458 closed
[HTTPD] Connection 0x3ffe24a8 from 192.168.178.41:34960
[HTTPD] MG_EV_RECV
I (366611) HAP: HTTP request from 192.168.178.41:34960: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe24a8 closed
[HTTPD] Connection 0x3ffe73f8 from 192.168.178.41:35052
[HTTPD] MG_EV_RECV
I (381601) HAP: HTTP request from 192.168.178.41:35052: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe73f8 closed
[HTTPD] Connection 0x3ffe73f8 from 192.168.178.41:35142
[HTTPD] MG_EV_RECV
I (396701) HAP: HTTP request from 192.168.178.41:35142: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe73f8 closed
[HTTPD] Connection 0x3ffe73f8 from 192.168.178.41:35230
[HTTPD] MG_EV_RECV
I (411601) HAP: HTTP request from 192.168.178.41:35230: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe73f8 closed
[HTTPD] Connection 0x3ffe9284 from 192.168.178.41:35326
[HTTPD] MG_EV_RECV
I (426601) HAP: HTTP request from 192.168.178.41:35326: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffe9284 closed
[HTTPD] Connection 0x3ffea19c from 192.168.178.41:35416
[HTTPD] MG_EV_RECV
I (441601) HAP: HTTP request from 192.168.178.41:35416: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffea19c closed
[HTTPD] Connection 0x3ffea19c from 192.168.178.41:35508
[HTTPD] MG_EV_RECV
I (456621) HAP: HTTP request from 192.168.178.41:35508: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffea19c closed
[HTTPD] Connection 0x3ffea19c from 192.168.178.41:35602
[HTTPD] MG_EV_RECV
I (471601) HAP: HTTP request from 192.168.178.41:35602: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffea19c closed
[HTTPD] Connection 0x3ffedbe0 from 192.168.178.41:35694
[HTTPD] MG_EV_RECV
I (486711) HAP: HTTP request from 192.168.178.41:35694: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffedbe0 closed
[HTTPD] Connection 0x3ffedbe0 from 192.168.178.41:35874
[HTTPD] MG_EV_RECV
I (516611) HAP: HTTP request from 192.168.178.41:35874: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffedbe0 closed
[HTTPD] Connection 0x3ffedbe0 from 192.168.178.41:35972
[HTTPD] MG_EV_RECV
I (531601) HAP: HTTP request from 192.168.178.41:35972: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffedbe0 closed
[HTTPD] Connection 0x3fff0910 from 192.168.178.41:36068
[HTTPD] MG_EV_RECV
I (546701) HAP: HTTP request from 192.168.178.41:36068: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff0910 closed
[HTTPD] Connection 0x3fff1820 from 192.168.178.41:36158
[HTTPD] MG_EV_RECV
I (561601) HAP: HTTP request from 192.168.178.41:36158: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff1820 closed
[HTTPD] Connection 0x3fff1820 from 192.168.178.41:36250
[HTTPD] MG_EV_RECV
I (576601) HAP: HTTP request from 192.168.178.41:36250: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff1820 closed
[HTTPD] Connection 0x3fff1820 from 192.168.178.41:36342
[HTTPD] MG_EV_RECV
I (591601) HAP: HTTP request from 192.168.178.41:36342: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff1820 closed
[HTTPD] Connection 0x3fff4554 from 192.168.178.41:36436
[HTTPD] MG_EV_RECV
I (606691) HAP: HTTP request from 192.168.178.41:36436: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff4554 closed
[HTTPD] Connection 0x3fff4554 from 192.168.178.41:36528
[HTTPD] MG_EV_RECV
I (621601) HAP: HTTP request from 192.168.178.41:36528: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff4554 closed
[HTTPD] Connection 0x3fff4554 from 192.168.178.41:36618
[HTTPD] MG_EV_RECV
I (636601) HAP: HTTP request from 192.168.178.41:36618: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff4554 closed
[HTTPD] MG_EV_CLOSEConnection 0x3ffc9b74 closed
[HTTPD] Connection 0x3ffc9b74 from 192.168.178.20:54229
[HTTPD] MG_EV_RECV
I (638481) HAP: HTTP request from 192.168.178.20:54229: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
I (638601) HAP: HTTP request from 192.168.178.20:54229: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (638621) HAP: HTTP request from 192.168.178.20:54229: GET /accessories
[MAIN] LED READ
I (638631) HAP: _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (638661) HAP: HTTP request from 192.168.178.20:54229: PUT /characteristics
I (638671) HAP: _decrypt end 186
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
I (638691) HAP: HTTP request from 192.168.178.20:54229: PUT /characteristics
I (638691) HAP: _decrypt end 186
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3fff8b0c from 192.168.178.41:36718
[HTTPD] MG_EV_RECV
I (651601) HAP: HTTP request from 192.168.178.41:36718: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff8b0c closed
[HTTPD] Connection 0x3fff73c4 from 192.168.178.41:36812
[HTTPD] MG_EV_RECV
I (666701) HAP: HTTP request from 192.168.178.41:36812: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff73c4 closed
[HTTPD] Connection 0x3fff73c4 from 192.168.178.41:36904
[HTTPD] MG_EV_RECV
I (681601) HAP: HTTP request from 192.168.178.41:36904: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff73c4 closed
[HTTPD] Connection 0x3fff73c4 from 192.168.178.41:36996
[HTTPD] MG_EV_RECV
I (696701) HAP: HTTP request from 192.168.178.41:36996: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fff73c4 closed
[HTTPD] Connection 0x3fffb20c from 192.168.178.41:37086
[HTTPD] MG_EV_RECV
I (711601) HAP: HTTP request from 192.168.178.41:37086: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3fffb20c closed
[HTTPD] MG_EV_RECV
I (721281) HAP: HTTP request from 192.168.178.27:49376: GET /characteristics
[MAIN] LED READ
I (721281) HAP: _decrypt end 88
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3ffd5d24 from 192.168.178.41:37180
[HTTPD] MG_EV_RECV
I (726601) HAP: HTTP request from 192.168.178.41:37180: GET /accessories
[MAIN] LED READ
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_CLOSEConnection 0x3ffd5d24 closed
[HTTPD] Connection 0x3ffd59a0 from 192.168.178.41:37250
[HTTPD] MG_EV_RECV
I (738831) HAP: HTTP request from 192.168.178.41:37250: GET /accessories
[MAIN] LED READ
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400014fd PS : 0x00060830 A0 : 0x8012858d A1 : 0x3ffc8150
A2 : 0x00000000 A3 : 0xfffffffc A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffc80f0
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x3ffb1bd4 A13 : 0x00000001
A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000003 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

Backtrace: 0x400014fd:0x3ffc8150 0x4012858a:0x3ffc8160 0x4011d515:0x3ffc8200 0x4011d71d:0x3ffc83e0 0x4011dac9:0x3ffc8410 0x40120546:0x3ffc8450 0x40120b22:0x3ffc8490 0x40120f39:0x3ffc8540 0x40120546:0x3ffc86e0 0x4012105a:0x3ffc8720 0x401213ad:0x3ffc8750 0x401216df:0x3ffc87c0 0x4011fb22:0x3ffc8820 0x4011db1a:0x3ffc8840
0x4012858a: hap_acc_accessories_do at /Users/dietmar/esp/esp32-homekit/src/accessories.c:374

0x4011d515: _plain_msg_recv at /Users/dietmar/esp/esp32-homekit/src/hap.c:470

0x4011d71d: _msg_recv at /Users/dietmar/esp/esp32-homekit/src/hap.c:470

0x4011dac9: mg_ev_handler at /Users/dietmar/esp/esp32-homekit/src/httpd.c:38

0x40120546: mg_call at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119

0x40120b22: mg_http_handler2 at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119

0x40120f39: mg_http_handler at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119

0x40120546: mg_call at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119

0x4012105a: mg_recv_common at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119

0x401213ad: mg_if_recv_tcp_cb at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119
(inlined by) mg_handle_tcp_read at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3554
(inlined by) mg_mgr_handle_conn at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3679

0x401216df: mg_socket_if_poll at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119

0x4011fb22: mg_mgr_poll at /Users/dietmar/esp/esp32-homekit/src/mongoose.c:3119

0x4011db1a: _httpd_task at /Users/dietmar/esp/esp32-homekit/src/httpd.c:17 (discriminator 1)

NVS: Nothing saved. key:xxxxxxxxxxxx

Hello, trying out the basic switch tutorial before results in this error.
I just eddited my wifi credentials. As you can see it is connected. Right after that the system fails. Maybe i got the wrong package of something?
maybe a wrong setting in the config?

I don't seem to get whats wrong.

here is the log:

`ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6380
load:0x40078000,len:11304
load:0x40080400,len:6700
entry 0x40080764
I (29) boot: ESP-IDF v4.0-dev-667-gda13efc17 2nd stage bootloader
I (29) boot: compile time 17:43:10
I (29) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed : 40MHz
I (39) boot: SPI Mode : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (81) boot: End of partition table
I (85) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x24598 (148888) map
I (146) esp_image: segment 1: paddr=0x000345c0 vaddr=0x3ffb0000 size=0x0306c ( 12396) load
I (151) esp_image: segment 2: paddr=0x00037634 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /Users/user/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (153) esp_image: segment 3: paddr=0x00037a3c vaddr=0x40080400 size=0x085d4 ( 34260) load
I (176) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x8e734 (583476) map
0x400d0018: _stext at ??:?

I (380) esp_image: segment 5: paddr=0x000ce754 vaddr=0x400889d4 size=0x072bc ( 29372) load
0x400889d4: ppSearchTxQueue at ??:?

I (402) boot: Loaded app from partition at offset 0x10000
I (402) boot: Disabling RNG early entropy source...
I (403) cpu_start: Pro cpu up.
I (406) cpu_start: Application information:
I (411) cpu_start: Project name: app-template
I (417) cpu_start: App version: v1.0.1-21-gfb7392d-dirty
I (423) cpu_start: Compile time: May 30 2019 17:43:12
I (429) cpu_start: ELF file SHA256: 40afeca62a0ea8fe...
I (435) cpu_start: ESP-IDF: v4.0-dev-667-gda13efc17
I (441) cpu_start: Starting app cpu, entry point is 0x4008105c
0x4008105c: call_start_cpu1 at /Users/user/esp/esp-idf/components/esp32/cpu_start.c:267

I (434) cpu_start: App cpu up.
I (452) heap_init: Initializing. RAM available for dynamic allocation:
I (459) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (465) heap_init: At 3FFB96C8 len 00026938 (154 KiB): DRAM
I (471) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (478) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (484) heap_init: At 4008FC90 len 00010370 (64 KiB): IRAM
I (490) cpu_start: Pro cpu start user code
I (173) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (273) wifi: wifi driver task: 3ffc10c8, prio:23, stack:3584, core=0
I (273) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (273) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (303) wifi: wifi firmware version: e11ccc4
I (303) wifi: config NVS flash: enabled
I (303) wifi: config nano formating: disabled
I (303) wifi: Init dynamic tx buffer num: 32
I (303) wifi: Init data frame dynamic rx buffer num: 32
I (313) wifi: Init management frame dynamic rx buffer num: 32
I (313) wifi: Init management short buffer num: 32
I (323) wifi: Init static rx buffer size: 1600
I (323) wifi: Init static rx buffer num: 10
I (333) wifi: Init dynamic rx buffer num: 32
I (433) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (433) wifi: mode : sta (30:ae:a4:0a:6c:5c)
I (433) SWITCH: wifi_init_sta finished.
I (443) SWITCH: connect to ap SSID:TjeppieNet password:boem1234
I (803) wifi: new:<13,0>, old:<1,0>, ap:<255,255>, sta:<13,0>, prof:1
I (803) wifi: state: init -> auth (b0)
I (803) wifi: state: auth -> assoc (0)
I (813) wifi: state: assoc -> run (10)
I (853) wifi: connected with TjeppieNet, channel 13, bssid = c4:ea:1d:e1:c2:bf
I (853) wifi: pm start, type: 1

I (1753) tcpip_adapter: sta ip: 192.168.1.98, mask: 255.255.255.0, gw: 192.168.1.1
I (1753) SWITCH: got ip:192.168.1.98
E (1753) nvs: nothing saved. key:30AEA40A6C5CD0

E (1763) nvs: nothing saved. key:30AEA40A6C5CD1

E (1763) nvs: nothing saved. key:30AEA40A6C5CD2

E (1773) nvs: nothing saved. key:30AEA40A6C5CD3

E (1773) nvs: nothing saved. key:30AEA40A6C5CD4

E (1783) nvs: nothing saved. key:30AEA40A6C5CD5

E (1783) nvs: nothing saved. key:30AEA40A6C5CD6

E (1793) nvs: nothing saved. key:30AEA40A6C5CD7

/Users/user/esp/esp-idf/components/freertos/queue.c:729 (xQueueGenericSend)- assert failed!
abort() was called at PC 0x4008bfa7 on core 0
0x4008bfa7: xQueueGenericSend at /Users/user/esp/esp-idf/components/freertos/queue.c:2044

ELF file SHA256: 40afeca62a0ea8fe77c03ebc9afc0c8d4178b9d75d5dfeb05e9b1d8b9df98685

Backtrace: 0x40087b94:0x3ffbf520 0x40087de1:0x3ffbf540 0x4008bfa7:0x3ffbf560 0x400e9dc9:0x3ffbf5a0 0x400e9bed:0x3ffbf5d0 0x400d33d2:0x3ffbf660 0x401008d9:0x3ffbf6c0 0x4015d6aa:0x3ffbf6e0 0x40101131:0x3ffbf710 0x401011f1:0x3ffbf750 0x4008ba15:0x3ffbf770
0x40087b94: invoke_abort at /Users/user/esp/esp-idf/components/esp32/panic.c:716

0x40087de1: abort at /Users/user/esp/esp-idf/components/esp32/panic.c:716

0x4008bfa7: xQueueGenericSend at /Users/user/esp/esp-idf/components/freertos/queue.c:2044

0x400e9dc9: httpd_bind at /Users/user/esp/esp32-homekit/src/httpd.c:83

0x400e9bed: hap_accessory_register at /Users/user/esp/esp32-homekit/src/hap.c:470

0x400d33d2: event_handler at /Users/user/esp/esp32-homekit/examples/switch/main/main.c:128 (discriminator 9)

0x401008d9: esp_event_post_to_user at /Users/user/esp/esp-idf/components/esp_event/event_loop_legacy.c:44

0x4015d6aa: handler_execute at /Users/user/esp/esp-idf/components/esp_event/esp_event.c:145

0x40101131: esp_event_loop_run at /Users/user/esp/esp-idf/components/esp_event/esp_event.c:641

0x401011f1: esp_event_loop_run_task at /Users/user/esp/esp-idf/components/esp_event/esp_event.c:641

0x4008ba15: vPortTaskWrapper at /Users/user/esp/esp-idf/components/freertos/port.c:403

Rebooting...
ets Jun 8 2016 00:22:57`

Unable to compile (DOIT ESP32 DEVKIT V1)

Invalid library found in /Users/aaru/Documents/Arduino/libraries/esp32-homekit-master: no headers files (.h) found in /Users/aaru/Documents/Arduino/libraries/esp32-homekit-master
In file included from /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:10:
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
{.format=homekit_format_string, .string_value=(value), ##VA_ARGS}
^
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:1088:14: note: in expansion of macro 'HOMEKIT_STRING_'
.value = HOMEKIT_STRING_(serial),
^~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:269:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_SERIAL_NUMBER'
HOMEKIT_DECLARE_CHARACTERISTIC_ ## name( VA_ARGS )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:32:42: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC_'
homekit_characteristic_t serial_number = HOMEKIT_CHARACTERISTIC_(SERIAL_NUMBER, ACCESSORY_SN);
^~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
{.format=homekit_format_string, .string_value=(value), ##VA_ARGS}
^
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:974:14: note: in expansion of macro 'HOMEKIT_STRING_'
.value = HOMEKIT_STRING_(manufacturer),
^~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_MANUFACTURER'
HOMEKIT_DECLARE_CHARACTERISTIC_ ## name( VA_ARGS )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC'
&(homekit_service_t) { .type=HOMEKIT_SERVICE_ ## type, ##VA_ARGS }
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'
##VA_ARGS
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY'
HOMEKIT_ACCESSORY(
^~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
{.format=homekit_format_string, .string_value=(value), ##VA_ARGS}
^
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:983:14: note: in expansion of macro 'HOMEKIT_STRING
'
.value = HOMEKIT_STRING_(model),
^~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_MODEL'
HOMEKIT_DECLARE_CHARACTERISTIC_ ## name( VA_ARGS )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC'
&(homekit_service_t) { .type=HOMEKIT_SERVICE_ ## type, ##VA_ARGS }
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'
##VA_ARGS
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY'
HOMEKIT_ACCESSORY(
^~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
{.format=homekit_format_string, .string_value=(value), ##VA_ARGS}
^
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:836:14: note: in expansion of macro 'HOMEKIT_STRING
'
.value = HOMEKIT_STRING_(revision),
^~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_FIRMWARE_REVISION'
HOMEKIT_DECLARE_CHARACTERISTIC_ ## name( VA_ARGS )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC'
&(homekit_service_t) { .type=HOMEKIT_SERVICE_ ## type, ##VA_ARGS }
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'
##VA_ARGS
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY'
HOMEKIT_ACCESSORY(
^~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
{.format=homekit_format_string, .string_value=(value), ##VA_ARGS}
^
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:1002:14: note: in expansion of macro 'HOMEKIT_STRING
'
.value = HOMEKIT_STRING_(name),
^~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_NAME'
HOMEKIT_DECLARE_CHARACTERISTIC_ ## name( VA_ARGS )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC'
&(homekit_service_t) { .type=HOMEKIT_SERVICE_ ## _type, ##VA_ARGS }
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'
##VA_ARGS
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY'
HOMEKIT_ACCESSORY(
^~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:101:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
.password = "111-11-111",
^~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:103:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
.setupId = "ABCD"
^~~~~~
In file included from /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:3:
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp: In function 'void homekit_server_on_pair_verify(client_context_t*, const byte*, size_t)':
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:43: error: 'system_get_free_heap_size' was not declared in this scope
#define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/esp_xpgm.h:28:56: note: in definition of macro 'XPGM_PRINTF'
#define XPGM_PRINTF(fmt, ...) printf_P(PSTR(fmt) , ##VA_ARGS);
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:21: note: in expansion of macro 'INFO'
#define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());
^~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:1774:2: note: in expansion of macro 'INFO_HEAP'
INFO_HEAP();
^~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:43: note: suggested alternative: 'esp_get_free_heap_size'
#define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/esp_xpgm.h:28:56: note: in definition of macro 'XPGM_PRINTF'
#define XPGM_PRINTF(fmt, ...) printf_P(PSTR(fmt) , ##VA_ARGS);
^~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:21: note: in expansion of macro 'INFO'
#define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());
^~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:1774:2: note: in expansion of macro 'INFO_HEAP'
INFO_HEAP();
^~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp: In function 'void homekit_server_init(homekit_server_config_t*)':
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:3439:4: error: 'system_restart' was not declared in this scope
system_restart();
^~~~~~~~~~~~~~
/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:3439:4: note: suggested alternative: 'system_event_t'
system_restart();
^~~~~~~~~~~~~~
system_event_t
Multiple libraries were found for "WiFi.h"
Used: /Users/aaru/Library/Arduino15/packages/esp32/hardware/esp32/2.0.2/libraries/WiFi
Not used: /Users/aaru/Documents/Arduino/libraries/WiFiNINA
Not used: /Users/aaru/Documents/Projects/Home/Arduino.app/Contents/Java/libraries/WiFi
Multiple libraries were found for "arduino_homekit_server.h"
Used: /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master
Not used: /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP8266-master
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

BLE Plans?

Good example. Thanks.
Any plan to use BLE instead of WiFi for an example?

mongoose.c:9026:3: note: in expansion of macro 'sigemptyset'

I cloned a new repository.
I have some compilation errors on mongoose.c
My operating system is MacOS 10.13.3 and uses the latest ESP-IDF / esp32-homekit
What steps have I made wrong?

This error occurs the first time I use it, but it will not happen afterwards.
2018-04-03 2 22 33

2018-04-03 2 22 44
2018-04-03 2 24 01

question

hi, i have flashed my esp32 devkit with this sw, i can see on my iphone the switch icon, but after, if i pressed the icon don't work, and the esp32 reset, can you help me?

Identify button does not show up

Steps:

  • build and run example Switch on ESP

  • during pairing no option to identify

  • Setup switch accessory in Homekit simulator

  • during pairing you get the option to identify

I compared the configurations briefly but could not see why the switch example does not offer an identify.

Never free

cJSON* root = cJSON_Parse(req_body);

Hey @younghyunjo! First of all I would like to thanks you for your perfect work! It is a simple way to use HAP for ESP32 with your library.

But I found a couple mistake which cause the memory leaks. In my case it happened very quickly because my accessory has 8 services with 2-3 characteristics for every service.

In this ticket cJSON object was created but newer free. You must to use cJSON_Delete() for free this instance of cJSON pointer.

Also I have a question/request for your library about advertise HAP accessory.
I mean the "sf" TXT record item. The documentation said that parameter must be equal to 1 if accessory has not been paired with any controller, but if accessory already has been paired this parameter must be a zero. In your code this parameter always is 1 because the value of adv->state is always ADVERTISE_ACCESSORY_STATE_NOT_PAIRED (I mean

static void _service_txt_set(struct advertiser* adv);

in advertise.c).
Could you please change your code for changing this parameter?

Regards

help: LD error

I have some build error on windows and my mac.
I'm using latest sdk (esp-idf and components/arduino).

image

Always show me undefined reference to 'wc_HKDF'
Can you give me any advice?

How to add more gpio?

Hello there,
i tried to add more gpio pins with your "example/switch" code. but the another accessory doesn't shown up.
can you review that.
i am attaching main.c file.
main.txt

Button push for switch

dear younghyunjo !!! congratulations for yuor job!
sorry about my bad English....
May you help me insert in the code a push button for physic(local PULL_UP) change the switch ?
i don't know how to do this.

homekit

感谢你提供的esp32homekit 固件编译文件,我用它制作了很多有趣的小工具,请问可以提供esp32s3 的homekit固件编译文件。

Thank you for the ESP32HomeKit firmware compilation file, I have made a lot of interesting gadgets with it, please can provide the homekit firmware compilation file for ESP32S3.

Add pwm dimmer?

can you help me?
I need pwm dimmer. ”One color led strip”

-One button. ”Long press to dimming and short press on/off”
-Initial state is off.
-Remember dimmable settings.

Thermostat accessory can't be adde.

I tried to set up a Thermostat accessory but it failed.

The debug display the following json fot adding the accessorie:

{"accessories":[{"aid":1,"services":[{"type":"0000004A-0000-1000-8000-0026BB765291","iid":1,"characteristics":[{"type":"0000000F-0000-1000-8000-0026BB765291","iid":2,"perms":["pr","ev"],"format":"uint8","value":0},{"type":"00000033-0000-1000-8000-0026BB765291","iid":3,"p
erms":["pr","pw","ev"],"format":"uint8","value":0},{"type":"00000011-0000-1000-8000-0026BB765291","iid":4,"perms":["pr","ev"],"format":"float","value":0},{"type":"00000035-0000-1000-8000-0026BB765291","iid":5,"perms":["pr","pw","ev"],"format":"float","value":15},{"type":
"00000036-0000-1000-8000-0026BB765291","iid":6,"perms":["pr","pw","ev"],"format":"uint8","value":0},{"type":"00000010-0000-1000-8000-0026BB765291","iid":7,"perms":["pr","ev"],"format":"float","value":50},{"type":"00000034-0000-1000-8000-0026BB765291","iid":8,"perms":["pr
","pw","ev"],"format":"float","value":50},{"type":"00000023-0000-1000-8000-0026BB765291","iid":9,"perms":["pr"],"format":"string","value":"New Thermostat"}]}]}]}

As code example I use:
on HAP preparation:
a = hap_accessory_register((char*)BRIDGE_NAME,
accessory_id,
(char*)"053-58-197",
(char*)MANUFACTURER_NAME,
// HAP_ACCESSORY_CATEGORY_SWITCH,
HAP_ACCESSORY_CATEGORY_BRIDGE,
811,
1,
NULL,
&callback);

On callback

void* accessory_object = hap_accessory_add(hap_support_bridge);

struct hap_characteristic thermostat[] = {
{HAP_CHARACTER_CURRENT_HEATING_COOLING_STATE,
(void*)thermostat_support_current_heating_cooling_state,
NULL,
thermostat_support_current_heating_cooling_state_read,
NULL,
thermostat_support_current_heating_cooling_state_notify
},
{HAP_CHARACTER_TARGET_HEATING_COOLING_STATE,
(void*)thermostat_support_target_heating_cooling_state,
NULL,
thermostat_support_target_heating_cooling_state_read,
thermostat_support_target_heating_cooling_state_write,
thermostat_support_target_heating_cooling_state_notify
},
{HAP_CHARACTER_CURRENT_TEMPERATURE,
(void*)thermostat_support_current_temperature,
NULL,
thermostat_support_current_temperature_read,
NULL,
thermostat_support_current_temperature_notify
},
{HAP_CHARACTER_TARGET_TEMPERATURE,
(void*)thermostat_support_target_temperature,
NULL,
thermostat_support_target_temperature_read,
NULL,
thermostat_support_target_temperature_notify
},
{HAP_CHARACTER_TEMPERATURE_DISPLAY_UNITS,
(void*)thermostat_support_temperature_display_unit,
NULL,
thermostat_support_temperature_display_unit_read,
thermostat_support_temperature_display_unit_write,
thermostat_support_temperature_display_unit_notify
},
// {HAP_CHARACTER_COOLING_THRESHOLD_TEMPERATURE,
// NULL ,
// NULL,
// NULL,
// NULL,
// NULL
// },
{HAP_CHARACTER_CURRENT_RELATIVE_HUMIDITY,
(void*)5000 ,
NULL,
NULL,
NULL,
NULL
},
// {HAP_CHARACTER_HEATING_THRESHOLD_TEMPERATURE,
// NULL ,
// NULL,
// NULL,
// NULL,
// NULL
// },
{HAP_CHARACTER_TARGET_RELATIVE_HUMIDITY,
(void*)5000 ,
NULL,
NULL,
NULL,
NULL
},

		//			{HAP_CHARACTER_ON, (void*)led2, NULL, led_read2, led_write2, led_notify2},
		{HAP_CHARACTER_NAME,
				(void*)ACCESSORY_THERMOSTAT_NAME ,
				NULL,
				NULL,
				NULL,
				NULL
		},

};
hap_service_and_characteristics_add(a,
		accessory_object,
		HAP_SERVICE_THERMOSTAT,
		thermostat,
		ARRAY_SIZE(thermostat));

arduino "port" planned?

Hey,

not an issue, but do you plan to release an arduino-ide port of this wonderful work?

Thank you!

Compilation error

Hello,

I follow the steps,

$ git clone https://github.com/younghyunjo/esp32-homekit.git
$ cd esp32-homekit
$ git submodule update --init --recursive
$ cd examples/switch
$ make
$ make flash

The following error occurred,

esp8266@esp8266-VirtualBox:~/Desktop/esp/esp32-homekit/examples/switch$ make
CC build/esp32-homekit/src/advertise.o
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c: In function '_service_txt_set':
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:36:5: error: unknown type name 'mdns_txt_item_t'
mdns_txt_item_t hap_service_txt[] = {

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:37:9: warning: braces around scalar initializer
{"c#", adv->service_txt_c_sharp},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:37:9: note: (near initialization for 'hap_service_txt[0]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:37:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"c#", adv->service_txt_c_sharp},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:37:10: note: (near initialization for 'hap_service_txt[0]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:37:16: warning: excess elements in scalar initializer
{"c#", adv->service_txt_c_sharp},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:37:16: note: (near initialization for 'hap_service_txt[0]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:38:9: warning: braces around scalar initializer
{"ff", "0"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:38:9: note: (near initialization for 'hap_service_txt[1]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:38:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"ff", "0"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:38:10: note: (near initialization for 'hap_service_txt[1]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:38:16: warning: excess elements in scalar initializer
{"ff", "0"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:38:16: note: (near initialization for 'hap_service_txt[1]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:39:9: warning: braces around scalar initializer
{"pv", "1.0"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:39:9: note: (near initialization for 'hap_service_txt[2]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:39:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"pv", "1.0"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:39:10: note: (near initialization for 'hap_service_txt[2]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:39:16: warning: excess elements in scalar initializer
{"pv", "1.0"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:39:16: note: (near initialization for 'hap_service_txt[2]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:40:9: warning: braces around scalar initializer
{"id", adv->id},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:40:9: note: (near initialization for 'hap_service_txt[3]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:40:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"id", adv->id},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:40:10: note: (near initialization for 'hap_service_txt[3]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:40:16: warning: excess elements in scalar initializer
{"id", adv->id},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:40:16: note: (near initialization for 'hap_service_txt[3]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:41:9: warning: braces around scalar initializer
{"md", adv->name},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:41:9: note: (near initialization for 'hap_service_txt[4]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:41:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"md", adv->name},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:41:10: note: (near initialization for 'hap_service_txt[4]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:41:16: warning: excess elements in scalar initializer
{"md", adv->name},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:41:16: note: (near initialization for 'hap_service_txt[4]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:42:9: warning: braces around scalar initializer
{"s#", "1"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:42:9: note: (near initialization for 'hap_service_txt[5]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:42:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"s#", "1"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:42:10: note: (near initialization for 'hap_service_txt[5]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:42:16: warning: excess elements in scalar initializer
{"s#", "1"},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:42:16: note: (near initialization for 'hap_service_txt[5]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:43:9: warning: braces around scalar initializer
{"sf", adv->service_txt_sf},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:43:9: note: (near initialization for 'hap_service_txt[6]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:43:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"sf", adv->service_txt_sf},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:43:10: note: (near initialization for 'hap_service_txt[6]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:43:16: warning: excess elements in scalar initializer
{"sf", adv->service_txt_sf},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:43:16: note: (near initialization for 'hap_service_txt[6]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:44:9: warning: braces around scalar initializer
{"ci", adv->service_txt_ci},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:44:9: note: (near initialization for 'hap_service_txt[7]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:44:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
{"ci", adv->service_txt_ci},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:44:10: note: (near initialization for 'hap_service_txt[7]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:44:16: warning: excess elements in scalar initializer
{"ci", adv->service_txt_ci},

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:44:16: note: (near initialization for 'hap_service_txt[7]')
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:9:21: warning: passing argument 1 of 'mdns_service_txt_set' from incompatible pointer type [-Wincompatible-pointer-types]
#define HAP_SERVICE "_hap"

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:59:26: note: in expansion of macro 'HAP_SERVICE'
mdns_service_txt_set(HAP_SERVICE, HAP_PROTO, hap_service_txt, ARRAY_SIZE(ha

In file included from /home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:5:0:
/home/esp8266/Desktop/esp/esp-idf/components/mdns/include/mdns.h:156:11: note: expected 'mdns_server_t * {aka struct mdns_server_s *}' but argument is of type 'char *'
esp_err_t mdns_service_txt_set(mdns_server_t * server, const char * service, co

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:59:50: warning: passing argument 3 of 'mdns_service_txt_set' from incompatible pointer type [-Wincompatible-pointer-types]
mdns_service_txt_set(HAP_SERVICE, HAP_PROTO, hap_service_txt, ARRAY_SIZE(ha

In file included from /home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:5:0:
/home/esp8266/Desktop/esp/esp-idf/components/mdns/include/mdns.h:156:11: note: expected 'const char *' but argument is of type 'int *'
esp_err_t mdns_service_txt_set(mdns_server_t * server, const char * service, co

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:59:5: error: too few arguments to function 'mdns_service_txt_set'
mdns_service_txt_set(HAP_SERVICE, HAP_PROTO, hap_service_txt, ARRAY_SIZE(ha

In file included from /home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:5:0:
/home/esp8266/Desktop/esp/esp-idf/components/mdns/include/mdns.h:156:11: note: declared here
esp_err_t mdns_service_txt_set(mdns_server_t * server, const char * service, co

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c: In function 'advertise_accessory_add':
/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:97:5: error: too few arguments to function 'mdns_init'
mdns_init();

In file included from /home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:5:0:
/home/esp8266/Desktop/esp/esp-idf/components/mdns/include/mdns.h:59:11: note: declared here
esp_err_t mdns_init(tcpip_adapter_if_t tcpip_if, mdns_server_t ** server);

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:98:5: warning: implicit declaration of function 'mdns_hostname_set' [-Wimplicit-function-declaration]
mdns_hostname_set(host);

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:99:5: warning: implicit declaration of function 'mdns_instance_name_set' [-Wimplicit-function-declaration]
mdns_instance_name_set(name);

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:100:22: warning: passing argument 1 of 'mdns_service_add' from incompatible pointer type [-Wincompatible-pointer-types]
mdns_service_add(name, HAP_SERVICE, HAP_PROTO, port, NULL, 0);

In file included from /home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:5:0:
/home/esp8266/Desktop/esp/esp-idf/components/mdns/include/mdns.h:108:11: note: expected 'mdns_server_t * {aka struct mdns_server_s *}' but argument is of type 'char *'
esp_err_t mdns_service_add(mdns_server_t * server, const char * service, const

/home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:100:5: error: too many arguments to function 'mdns_service_add'
mdns_service_add(name, HAP_SERVICE, HAP_PROTO, port, NULL, 0);

In file included from /home/esp8266/Desktop/esp/esp32-homekit/src/advertise.c:5:0:
/home/esp8266/Desktop/esp/esp-idf/components/mdns/include/mdns.h:108:11: note: declared here
esp_err_t mdns_service_add(mdns_server_t * server, const char * service, const

make[1]: *** [src/advertise.o] Error 1
make: *** [component-esp32-homekit-build] Error 2
esp8266@esp8266-VirtualBox:~/Desktop/esp/esp32-homekit/examples/switch$

Setup Code In Documentation Is Incorrect

The setup code in the documentation is 053-58-917 however in the serial monitor on the board the setup code is given as 053-58-197 which is correct and works.

SparkFun ESP32 Thing

I got it working with the Adafruit HUZZAH32, now I am trying the SparkFun ESP32 Thing.

After flashing I only get garbled characters from the serial connection. An idea what the problem could be?

Hang-up while pairing

This issue reported by @streicherlouw at #9
I moved the issue to here.


Hi.

I am trying this code for the first time today, and having a bit of trouble with pairing. The example SWITCH object also shows up on my homekit network, and I can pair with it, but in the last step of the pairing, something seems to go wrong with the status reporting.

The last step in pairing is where the ipad/iphone retrieves the status of the newly added accessory. In that step, my ipad just never gets a response and eventually times out. I can subsequently quit the ipad app and restart the ESP32, and then tings work fine, but the pairing always ends in a status read failure for me. Does yours pair successfully?

Pairing log:

MONITOR
--- idf_monitor on /dev/cu.usbserial-DN027YZF 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5656
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:14008
entry 0x4007860c
I (31) boot: ESP-IDF v3.1-dev-826-g4e982d4b 2nd stage bootloader
I (31) boot: compile time 11:21:39
I (42) boot: Enabling RNG early entropy source...
I (42) boot: SPI Speed : 40MHz
I (42) boot: SPI Mode : DIO
I (45) boot: SPI Flash Size : 4MB
I (49) boot: Partition Table:
I (53) boot: ## Label Usage Type ST Offset Length
I (60) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (67) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (75) boot: 2 factory factory app 00 00 00010000 00100000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1be48 (114248) map
I (135) esp_image: segment 1: paddr=0x0002be70 vaddr=0x3ffb0000 size=0x03790 ( 14224) load
I (141) esp_image: segment 2: paddr=0x0002f608 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _iram_start at /Users/streicher/esp/esp-idf/components/freertos/xtensa_vectors.S:1685

I (143) esp_image: segment 3: paddr=0x0002fa10 vaddr=0x40080400 size=0x00600 ( 1536) load
I (152) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x81638 (529976) map
0x400d0018: _stext at ??:?

I (345) esp_image: segment 5: paddr=0x000b1658 vaddr=0x40080a00 size=0x0ec80 ( 60544) load
I (371) esp_image: segment 6: paddr=0x000c02e0 vaddr=0x400c0000 size=0x00000 ( 0) load
I (380) boot: Loaded app from partition at offset 0x10000
I (381) boot: Disabling RNG early entropy source...
I (383) cpu_start: Pro cpu up.
I (386) cpu_start: Starting app cpu, entry point is 0x40080f74
0x40080f74: call_start_cpu1 at /Users/streicher/esp/esp-idf/components/esp32/cpu_start.c:224

I (0) cpu_start: App cpu up.
I (397) heap_init: Initializing. RAM available for dynamic allocation:
I (404) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (410) heap_init: At 3FFB9A38 len 000265C8 (153 KiB): DRAM
I (416) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (422) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (429) heap_init: At 4008F680 len 00010980 (66 KiB): IRAM
I (435) cpu_start: Pro cpu start user code
I (117) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (261) wifi: wifi firmware version: c09b606
I (261) wifi: config NVS flash: enabled
I (261) wifi: config nano formating: disabled
I (261) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (271) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (311) wifi: Init dynamic tx buffer num: 32
I (311) wifi: Init data frame dynamic rx buffer num: 32
I (311) wifi: Init management frame dynamic rx buffer num: 32
I (311) wifi: wifi driver task: 3ffc0f20, prio:23, stack:4096
I (321) wifi: Init static rx buffer num: 10
I (321) wifi: Init dynamic rx buffer num: 32
I (411) phy: phy_version: 386.0, 67c798f, Mar 14 2018, 16:34:06, 1, 0
I (411) wifi: mode : sta (24:0a:c4:00:9e:b6)
I (421) SWITCH: wifi_init_sta finished.
I (421) SWITCH: connect to ap SSID:STL password:SECRET
I (541) wifi: n:11 0, o:1 0, ap:255 255, sta:11 0, prof:1
I (1521) wifi: state: init -> auth (b0)
I (1521) wifi: state: auth -> assoc (0)
I (1531) wifi: state: assoc -> run (10)
I (1551) wifi: connected with STL, channel 11
I (1551) wifi: pm start, type: 1

I (2221) event: sta ip: 10.0.1.182, mask: 255.255.255.0, gw: 10.0.1.1
I (2221) SWITCH: got ip:10.0.1.182
E (2221) nvs: nothing saved. key:240AC4009EB6PB

E (2221) nvs: nothing saved. key:240AC4009EB6PV

E (2251) nvs: nothing saved. key:240AC4009EB6D0

E (2251) nvs: nothing saved. key:240AC4009EB6D1

E (2251) nvs: nothing saved. key:240AC4009EB6D2

E (2261) nvs: nothing saved. key:240AC4009EB6D3

E (2261) nvs: nothing saved. key:240AC4009EB6D4

E (2271) nvs: nothing saved. key:240AC4009EB6D5

E (2271) nvs: nothing saved. key:240AC4009EB6D6

E (2281) nvs: nothing saved. key:240AC4009EB6D7

[HTTPD] Connection 0x3ffbb5b0 from 10.0.1.179:53396
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53396: POST /pair-setup
I (33661) SRP: setup_code:053-58-197

I (36901) SRP: INITIALIZED

[INFO][PAIR-SETUP] init
[PAIR-SETUP] STATE:1I (36901) SRP: setup_code:053-58-197

I (40171) SRP: INITIALIZED

[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53396: POST /pair-setup
[PAIR-SETUP] STATE:3[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53396: POST /pair-setup
[PAIR-SETUP] STATE:5[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_CLOSEConnection 0x3ffbb5b0 closed
[HTTPD] Connection 0x3ffbb600 from 10.0.1.179:53397
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53397: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53397: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53397: GET /accessories
[MAIN] LED READ
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53397: POST /pairings
[PAIRINGS] STATE:1 METHOD:3
[HAP][INFO] _decrypt end 216
[HTTPD] Connection 0x3ffc9c80 from 10.0.1.158:56757
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56757: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56757: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56757: GET /accessories
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56757: POST /pairings
[PAIRINGS] STATE:1 METHOD:3
[HAP][INFO] _decrypt end 216
[HTTPD] Connection 0x3ffca960 from 10.0.1.160:50203
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.160:50203: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.160:50203: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.160:50203: GET /accessories
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.160:50203: POST /pairings
[PAIRINGS] STATE:1 METHOD:3
[HAP][INFO] _decrypt end 216
[HTTPD] Connection 0x3ffcade0 from 10.0.1.177:51010
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.177:51010: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.177:51010: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.177:51010: GET /accessories
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3ffcab70 from 10.0.1.178:54425
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.178:54425: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.178:54425: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.178:54425: GET /accessories
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] Connection 0x3ffcbbd8 from 10.0.1.162:60093
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.162:60093: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.162:60093: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.162:60093: GET /accessories
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_CLOSEConnection 0x3ffbb600 closed
[HTTPD] MG_EV_CLOSEConnection 0x3ffc9c80 closed
[HTTPD] Connection 0x3ffc905c from 10.0.1.179:53399
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53399: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53399: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53399: GET /accessories
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.179:53399: POST /pairings
[PAIRINGS] STATE:1 METHOD:3
[HAP][INFO] _decrypt end 216
[HTTPD] Connection 0x3ffc9f74 from 10.0.1.158:56759
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56759: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 0
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56759: POST /pair-verify
[HTTPD] DEFAULT:102
[HTTPD] DEFAULT:100
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56759: GET /accessories
[HAP][INFO] _decrypt end 77
[HTTPD] MG_EV_SEND. 1
[HTTPD] MG_EV_RECV
[INFO] HTTP request from 10.0.1.158:56759: POST /pairings
[PAIRINGS] STATE:1 METHOD:3
[HAP][INFO] _decrypt end 216
[HTTPD] MG_EV_CLOSEConnection 0x3ffcade0 closed
[HTTPD] MG_EV_CLOSEConnection 0x3ffca960 closed

Memory leak

free(attr_accessories_json);

Here is almost same as my previous issue but you used free() for cJSON object and free only a root but not chain. You must to use cJSON_Delete() here.

Regards

Rebooting...

Hello,
I've tried this with several devices but always have the same problem — it is rebooting infinitely.
Do I guess right it should not do that?

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6332
load:0x40078000,len:11308
ho 0 tail 12 room 4
load:0x40080400,len:6680
entry 0x40080760
I (31) boot: ESP-IDF v4.0-dev-141-g106dc0590 2nd stage bootloader
I (31) boot: compile time 22:02:04
I (31) boot: Enabling RNG early entropy source...
I (37) boot: SPI Speed      : 40MHz
I (41) boot: SPI Mode       : DIO
I (45) boot: SPI Flash Size : 4MB
I (49) boot: Partition Table:
I (53) boot: ## Label            Usage          Type ST Offset   Length
I (60) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (67) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (75) boot:  2 factory          factory app      00 00 00010000 00100000
I (82) boot: End of partition table
I (87) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x24738 (149304) map
I (148) esp_image: segment 1: paddr=0x00034760 vaddr=0x3ffb0000 size=0x02de0 ( 11744) load
I (153) esp_image: segment 2: paddr=0x00037548 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at /Users/ruslan/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (155) esp_image: segment 3: paddr=0x00037950 vaddr=0x40080400 size=0x086c0 ( 34496) load
I (178) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x8eb60 (584544) map
0x400d0018: _stext at ??:?

I (383) esp_image: segment 5: paddr=0x000ceb80 vaddr=0x40088ac0 size=0x07090 ( 28816) load
0x40088ac0: ieee80211_output_process at ??:?

I (404) boot: Loaded app from partition at offset 0x10000
I (404) boot: Disabling RNG early entropy source...
I (405) cpu_start: Pro cpu up.
I (408) cpu_start: Application information:
I (413) cpu_start: Project name:     app-template
I (419) cpu_start: App version:      v1.0.1-21-gfb7392d-dirty
I (425) cpu_start: Compile time:     Mar 23 2019 22:02:09
I (431) cpu_start: ELF file SHA256:  6dee4d5824a56468...
I (437) cpu_start: ESP-IDF:          v4.0-dev-141-g106dc0590
I (443) cpu_start: Starting app cpu, entry point is 0x40081064
0x40081064: call_start_cpu1 at /Users/ruslan/esp/esp-idf/components/esp32/cpu_start.c:267

I (435) cpu_start: App cpu up.
I (454) heap_init: Initializing. RAM available for dynamic allocation:
I (461) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (467) heap_init: At 3FFB94D8 len 00026B28 (154 KiB): DRAM
I (473) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (480) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (486) heap_init: At 4008FB50 len 000104B0 (65 KiB): IRAM
I (492) cpu_start: Pro cpu start user code
I (175) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (340) wifi: wifi driver task: 3ffc1190, prio:23, stack:3584, core=0
I (340) wifi: wifi firmware version: 9c8361c
I (340) wifi: config NVS flash: enabled
I (340) wifi: config nano formating: disabled
I (350) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (360) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (390) wifi: Init dynamic tx buffer num: 32
I (390) wifi: Init data frame dynamic rx buffer num: 32
I (390) wifi: Init management frame dynamic rx buffer num: 32
I (390) wifi: Init management short buffer num: 32
I (400) wifi: Init static rx buffer size: 1600
I (400) wifi: Init static rx buffer num: 10
I (410) wifi: Init dynamic rx buffer num: 32
I (510) phy: phy_version: 4100, 6fa5e27, Jan 25 2019, 17:02:06, 0, 0
I (510) wifi: mode : sta (24:0a:c4:0e:4e:20)
I (510) SWITCH: wifi_init_sta finished.
I (510) SWITCH: connect to ap SSID:Hello password:810450970140
I (630) wifi: new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (630) wifi: state: init -> auth (b0)
I (630) wifi: state: auth -> assoc (0)
I (640) wifi: state: assoc -> run (10)
I (660) wifi: connected with Hello, channel 1, bssid = 74:1b:b2:d4:91:46
I (660) wifi: pm start, type: 1

I (5290) event: sta ip: 192.168.100.9, mask: 255.255.255.0, gw: 192.168.100.1
I (5290) SWITCH: got ip:192.168.100.9
E (5290) nvs: nothing saved. key:240AC40E4E20D0

E (5300) nvs: nothing saved. key:240AC40E4E20D1

E (5300) nvs: nothing saved. key:240AC40E4E20D2

E (5310) nvs: nothing saved. key:240AC40E4E20D3

E (5310) nvs: nothing saved. key:240AC40E4E20D4

E (5320) nvs: nothing saved. key:240AC40E4E20D5

E (5320) nvs: nothing saved. key:240AC40E4E20D6

E (5330) nvs: nothing saved. key:240AC40E4E20D7

/Users/ruslan/esp/esp-idf/components/freertos/queue.c:729 (xQueueGenericSend)- assert failed!
abort() was called at PC 0x4008ca53 on core 0
0x4008ca53: xQueueGenericSend at /Users/ruslan/esp/esp-idf/components/freertos/queue.c:2044


ELF file SHA256: 6dee4d5824a56468a395017c24f409093a91ae9365e49a36f41e5eafbc615cdc

Backtrace: 0x40086fb8:0x3ffbf7a0 0x40087205:0x3ffbf7c0 0x4008ca53:0x3ffbf7e0 0x4011f429:0x3ffbf820 0x4011f235:0x3ffbf850 0x400d2c2a:0x3ffbf8e0 0x401364ad:0x3ffbf940 0x401364f1:0x3ffbf960 0x4008c4bd:0x3ffbf9b0
0x40086fb8: invoke_abort at /Users/ruslan/esp/esp-idf/components/esp32/panic.c:715

0x40087205: abort at /Users/ruslan/esp/esp-idf/components/esp32/panic.c:715

0x4008ca53: xQueueGenericSend at /Users/ruslan/esp/esp-idf/components/freertos/queue.c:2044

0x4011f429: httpd_bind at /Users/ruslan/esp/esp32-homekit/src/httpd.c:83

0x4011f235: hap_accessory_register at /Users/ruslan/esp/esp32-homekit/src/hap.c:470

0x400d2c2a: event_handler at /Users/ruslan/esp/esp32-homekit/examples/switch/main/main.c:128 (discriminator 9)

0x401364ad: esp_event_post_to_user at /Users/ruslan/esp/esp-idf/components/esp_event/event_loop.c:109

0x401364f1: esp_event_loop_task at /Users/ruslan/esp/esp-idf/components/esp_event/event_loop.c:109

0x4008c4bd: vPortTaskWrapper at /Users/ruslan/esp/esp-idf/components/freertos/port.c:403


Rebooting...

temperature sensor ?

Congratulations on the good project!
I'm not a good programmer yet, but I've done yours project and I really enjoyed it.
I hope we will soon see a project like a temperature sensor or a colored strip.
Excuse me for my bad English.

Issue with SK6812 led library

Good morning,

thanks for programming a Homekit implementation for the ESP32!
What does not work for me, is switching on and off my sk6812 LED strand with it. I cannot tell what exactly is going wrong. The way I switch on the LEDs works if invoked directly from main, but when I put the commands in the place where the on-board LED is switched on and off, it hangs at digitalLeds_updatePixels(strand);. I have tested with putting the command gpio_set_level(LED_PORT, 1); in several places. If it is before the updatePixels call, the onboard LED switches on, but not afterwards. You can see my very slight modifications in https://github.com/TAKeanice/esp32-homekit/tree/with_sk6812, more specifically in commit TAKeanice@0a227f3.

I did not have the time yet to get the serial port log, as I am not yet very familiar with programming the ESP32 and in general, programming a device attached to a serial port.

Thanks in advance for your ideas!

Make error

Following build instructions. On make command:

Makefile:8: /make/project.mk: No such file or directory
make: *** No rule to make target `/make/project.mk'. Stop.

Did I miss something?

Failed to compile

Hy!
I tryed to complie the example project(switch) with Cmake, but I have the following error:

esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x18): undefined reference to app_main' esp32/libesp32.a(cpu_start.c.obj): In function main_task':
C:/esp-idf/components/esp32/cpu_start.c:489: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

The full log:
C:\esp-idf\examples\esp32-homekit\examples\switch>idf.py build
Note: You are using Python 3.7.3. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
Checking Python dependencies...
Python requirements from C:\esp-idf\requirements.txt are satisfied.
Running ninja in directory C:\esp-idf\examples\esp32-homekit\examples\switch\build
Executing "ninja all"...
[0/1] Re-running CMake...
CMake Warning at C:/esp-idf/tools/cmake/scripts/expand_requirements.cmake:141 (message):
Component C:/esp-idf/examples/esp32-homekit/examples/switch/main contains
old-style component.mk but no CMakeLists.txt. Component will be skipped.
Call Stack (most recent call first):
C:/esp-idf/tools/cmake/scripts/expand_requirements.cmake:266 (components_find_all)

-- Building empty aws_iot component due to configuration
-- Component names: soc log heap freertos vfs newlib esp_ringbuf driver esp_event ethernet lwip tcpip_adapter partition_table app_update spi_flash mbedtls micro-ecc bootloader_support nvs_flash pthread smartconfig_ack wpa_supplicant xtensa-debug-module esp32 cxx app_trace asio jsmn aws_iot bootloader bt coap console nghttp esp-tls esp_adc_cal tcp_transport esp_http_client esp_http_server esp_https_ota esptool_py expat wear_levelling sdmmc fatfs freemodbus idf_test json libsodium mdns mqtt openssl protobuf-c protocomm spiffs ulp wifi_provisioning
-- Component paths: C:/esp-idf/components/soc;C:/esp-idf/components/log;C:/esp-idf/components/heap;C:/esp-idf/components/freertos;C:/esp-idf/components/vfs;C:/esp-idf/components/newlib;C:/esp-idf/components/esp_ringbuf;C:/esp-idf/components/driver;C:/esp-idf/components/esp_event;C:/esp-idf/components/ethernet;C:/esp-idf/components/lwip;C:/esp-idf/components/tcpip_adapter;C:/esp-idf/components/partition_table;C:/esp-idf/components/app_update;C:/esp-idf/components/spi_flash;C:/esp-idf/components/mbedtls;C:/esp-idf/components/micro-ecc;C:/esp-idf/components/bootloader_support;C:/esp-idf/components/nvs_flash;C:/esp-idf/components/pthread;C:/esp-idf/components/smartconfig_ack;C:/esp-idf/components/wpa_supplicant;C:/esp-idf/components/xtensa-debug-module;C:/esp-idf/components/esp32;C:/esp-idf/components/cxx;C:/esp-idf/components/app_trace;C:/esp-idf/components/asio;C:/esp-idf/components/jsmn;C:/esp-idf/components/aws_iot;C:/esp-idf/components/bootloader;C:/esp-idf/components/bt;C:/esp-idf/components/coap;C:/esp-idf/components/console;C:/esp-idf/components/nghttp;C:/esp-idf/components/esp-tls;C:/esp-idf/components/esp_adc_cal;C:/esp-idf/components/tcp_transport;C:/esp-idf/components/esp_http_client;C:/esp-idf/components/esp_http_server;C:/esp-idf/components/esp_https_ota;C:/esp-idf/components/esptool_py;C:/esp-idf/components/expat;C:/esp-idf/components/wear_levelling;C:/esp-idf/components/sdmmc;C:/esp-idf/components/fatfs;C:/esp-idf/components/freemodbus;C:/esp-idf/components/idf_test;C:/esp-idf/components/json;C:/esp-idf/components/libsodium;C:/esp-idf/components/mdns;C:/esp-idf/components/mqtt;C:/esp-idf/components/openssl;C:/esp-idf/components/protobuf-c;C:/esp-idf/components/protocomm;C:/esp-idf/components/spiffs;C:/esp-idf/components/ulp;C:/esp-idf/components/wifi_provisioning
-- ccache will be used for faster builds
-- Adding linker script C:/esp-idf/examples/esp32-homekit/examples/switch/build/esp32/esp32_out.ld
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.common.ld
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- Building empty aws_iot component due to configuration
-- Component libraries: soc;log;heap;freertos;vfs;newlib;esp_ringbuf;driver;esp_event;ethernet;lwip;tcpip_adapter;app_update;spi_flash;mbedtls;micro-ecc;bootloader_support;nvs_flash;pthread;smartconfig_ack;wpa_supplicant;xtensa-debug-module;esp32;cxx;app_trace;asio;jsmn;aws_iot;bt;coap;console;nghttp;esp-tls;esp_adc_cal;tcp_transport;esp_http_client;esp_http_server;esp_https_ota;expat;wear_levelling;sdmmc;fatfs;freemodbus;idf_test;json;libsodium;mdns;mqtt;openssl;protobuf-c;protocomm;spiffs;ulp;wifi_provisioning
-- Configuring done
-- Generating done
-- Build files have been written to: C:/esp-idf/examples/esp32-homekit/examples/switch/build
[1/5] Performing build step for 'bootloader'
ninja: no work to do.
[2/3] Linking CXX executable esp32-homekit.elf
FAILED: esp32-homekit.elf
cmd.exe /C "cd . && C:\Users\Benji.espressif\tools\xtensa-esp32-elf\1.22.0-80-g6c4433a5-5.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -nostdlib CMakeFiles/esp32-homekit.elf.dir/dummy_main_src.c.obj -o esp32-homekit.elf -Wl,--gc-sections -Wl,--cref -Wl,--Map=esp32-homekit.map -Wl,--start-group soc/libsoc.a log/liblog.a heap/libheap.a freertos/libfreertos.a vfs/libvfs.a newlib/libnewlib.a esp_ringbuf/libesp_ringbuf.a driver/libdriver.a esp_event/libesp_event.a ethernet/libethernet.a lwip/liblwip.a tcpip_adapter/libtcpip_adapter.a app_update/libapp_update.a spi_flash/libspi_flash.a mbedtls/libmbedtls.a micro-ecc/libmicro-ecc.a bootloader_support/libbootloader_support.a nvs_flash/libnvs_flash.a pthread/libpthread.a smartconfig_ack/libsmartconfig_ack.a wpa_supplicant/libwpa_supplicant.a xtensa-debug-module/libxtensa-debug-module.a esp32/libesp32.a cxx/libcxx.a app_trace/libapp_trace.a asio/libasio.a jsmn/libjsmn.a coap/libcoap.a console/libconsole.a nghttp/libnghttp.a esp-tls/libesp-tls.a esp_adc_cal/libesp_adc_cal.a tcp_transport/libtcp_transport.a esp_http_client/libesp_http_client.a esp_http_server/libesp_http_server.a esp_https_ota/libesp_https_ota.a expat/libexpat.a wear_levelling/libwear_levelling.a sdmmc/libsdmmc.a fatfs/libfatfs.a freemodbus/libfreemodbus.a json/libjson.a libsodium/liblibsodium.a mdns/libmdns.a mqtt/libmqtt.a openssl/libopenssl.a protobuf-c/libprotobuf-c.a protocomm/libprotocomm.a spiffs/libspiffs.a ulp/libulp.a wifi_provisioning/libwifi_provisioning.a -Wl,--undefined=uxTopUsedPriority -L C:/esp-idf/components/newlib/lib -lc -lm -L C:/esp-idf/components/esp32/lib -L C:/esp-idf/components/esp32/ld/wifi_iram_opt -lcoexist -lcore -lespnow -lmesh -lnet80211 -lphy -lpp -lrtc -lsmartconfig -lwpa2 -lwpa -lwps -L C:/esp-idf/examples/esp32-homekit/examples/switch/build/esp32 -T esp32_out.ld -L C:/esp-idf/components/esp32/ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld C:/esp-idf/components/esp32/libhal.a -lgcc -u call_user_start_cpu0 -u ld_include_panic_highint_hdl -lstdc++ -u __cxa_guard_dummy -u __cxx_fatal_exception -lgcov && cd ."
esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x18): undefined reference to app_main' esp32/libesp32.a(cpu_start.c.obj): In function main_task':
C:/esp-idf/components/esp32/cpu_start.c:489: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Any idea to solve thsi problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.