probonopd / ESP8266HueEmulator

Emulate a Philips Hue bridge running on an ESP8266 using the Arduino IDE.
MIT License
411 stars 93 forks source link

"New" iOS app crashes when searching bridge #26

Closed probonopd closed 7 years ago

probonopd commented 7 years ago

Using Philips Hue iOS app version 2.3.0 of 08.08.2016.

On the ESP serial console I see

Starting SSDP...
SSDP Started
===
23765
requestedUri: /api/nouser/config
23766
{"name":"hue emulator","swversion":"001","portalservices":false,"linkbutton":false,"mac":"18:FE:34:D1:76:58","dhcp":true,"ipaddress":"192.168.0.17","netmask":"255.255.255.0","gateway":"192.168.0.1","whitelist":{"":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
23787
===

The iOS app says "found new bridge" for about a second and then crashes.

With the same sketch running, I can find the bridge using the "old" Philips Hue gen 1 iOS app just fine:

===
267337
requestedUri: /api/e7x4kuCaC8h885jo/config
267337
{"name":"hue emulator","swversion":"001","portalservices":false,"linkbutton":false,"mac":"18:FE:34:D1:76:58","dhcp":true,"ipaddress":"192.168.0.17","netmask":"255.255.255.0","gateway":"192.168.0.1","whitelist":{"":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
267359
===
probonopd commented 7 years ago

Should be fixed with https://github.com/probonopd/ESP8266HueEmulator/pull/31, @opticron writes:

This adds a local copy of the SSDP library with a patch to enable custom formatting of SSDP notices and responses. The new Hue app uses a really bad hand-built SSDP reply parser that depends on non-ordered element order and non-standard elements.