Closed MrutyunjayPatel closed 3 years ago
@MrutyunjayPatel to see the actual http data being sent and received by the HAP core, you may call hap_http_debug_enable()
before hap_start()
. It will help understand if the HAP core is indeed getting correct from the http server module or not.
It is quite possible that there wasn't enough heap memory to parse the received JSON. Check the APIs here to do some heap analysis at your end. If you indeed require 100+ accessories, I would suggest that you use the ESP32 Wrover module which has external RAM.
Meanwhile, since you are getting issues only while getting/setting all values, and not during pairing, is it really required to remove and add back the bridge, going through the cumbersome process? Moreover, what happens if you just add a single bridge during HomeKit pairing and in the next boot cycle, add all the remaining bridged accessories?
@shahpiyushv . yes the error was due to http phrasing limitations, As i mentioned, I had error only during adding 128 device in a single go. no issues if adding in batch of 16/32/64. yes the memory does get used up quickly as we go on adding more accessories.
After some bulk operations all-on/all-off I (2451487) HAP Bridge: Free Memory Available' is 59408 bytes I (2451487) HAP Bridge: MinEver Free Memory Available' is 5580 bytes
I don't have ESP32 Wrover module , to further evaluate this.
Thanks and regards, Mrutyunjay
Have a nice day !
hi, We were evaluating homekit sdk for bridged mode accessories . using the bridge example with fan devices, extended the example to check if it can accommodate 32,64,128 Devices.
using IDF version 4.2.0
also we added new characteristic of speed to the fan example
During adding accessories (Bridge) to ipad home app the session gets terminated prematurely.
----------Fails to add 32/64 device in Home-----
Needs to increase the http url length to accommodate more devices ------http 1536 ----Ok--------
we could add in batches of 16 first then add another till Total 128.
But could not set or get the read the status of all 128.
added a bulk on and off in home kit app as Home Away(all off) and Enter Home(all on)
at 128 device count
Tried to increase CONFIG_HTTPD_MAX_URI_LEN=4096
Then got bored to add the 128 device again in the homekit app had to click and assign each fan to a room :(
Thanks and Regards