Closed lukecyca closed 7 years ago
Just for comparison, try the official Hue iOS or Android app. This software is a proof-of-concept and far from real-world usability at this point.
Also try https://github.com/sticilface/Esp8266-Hue which is another version originally based on ESP8266HueEmulator but tremendously changed.
If I recall correctly, I had a similar issue and using the official hue app first and then the chroma app solved the connectivity issue! But later I started using the version mentioned above.. I believe I got similar results but I can't be precise because I've done it a while ago and in both cases did my on small changes to the codes
@opticron can you have a look at this? I also cannot connect anymore, neither with the "old" iOS Hue app nor with the "new" iOS Hue app. The bridge is not found.
===
263293
requestedUri: /api/nouser/config
263294
{"name":"hue emulator","swversion":"001","portalservices":false,"linkbutton":false,"mac":"18:FE:xx:xx:xx:xx","dhcp":true,"ipaddress":"192.168.0.xx","netmask":"255.255.255.0","gateway":"192.168.0.1","whitelist":{"":{"name":"clientname#devicename"}},"swupda
263310
===
Note that the string ends with "swupda
like it doesn't fit into some buffer...!
So that's a dead giveaway that the aJson buffer length either hasn't been modified or wasn't modified to be long enough. The response there is exactly 256 bytes which I assume is the default buffer length. There are a few comments in the code that say to tweak the internal aJson buffer length to 2048 or 4096 with the result really depending how my lights you need to expose. 2048 can expose 6-8 lights and 4096 can expose up to 14 lights (there's a bit of overhead to be accounted for). I guess those comments need to be a tad more prominent.
So true @opticron. I guess that happens when you work on some code and then don't touch it in a year. Will update the documentation to make it more prominent. Thanks!
Can connect to the bridge now using the "old" iOS app as of 4a6897f6c2e18373079e2e40615e8d5e6370ad17.
Great idea and awesome project! I got this compiled and installed on a ESP-07 to try it out.
I used Chroma.app on my laptop, and it can discover the bridge, but cannot connect.
Here is the console output from the ESP chip: