probonopd / ESP8266HueEmulator

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

Respond properly to groups DELETE #51

Closed opticron closed 7 years ago

opticron commented 7 years ago

This was never implemented correctly in the first place. Groups DELETE will now respond with the proper message.

probonopd commented 7 years ago

Now the color icon iOS app hangs on

=== 21863
Method: GET
requestedUri: api/api/scenes/0
URI: scenes/0
21864
{"name":"Entspannen","owner":"api","picture":"","lastupdated":"","recycle":false,"locked":false,"version":2,"lights":["2"]}
21871
=== 21903
Method: DELETE
requestedUri: api/api/groups/1
URI: groups/1
21904
[{"success":"/groups/1 deleted"}]
21905
=== 21949
Method: DELETE
requestedUri: api/api/scenes/7
URI: scenes/7
21950
[{"success":"/scenes/7 deleted"}]
21952
=== 21981
Method: DELETE
requestedUri: api/api/scenes/3
URI: scenes/3
21982
[{"success":"/scenes/3 deleted"}]
21983
=== 22014
Method: DELETE
requestedUri: api/api/scenes/8
URI: scenes/8
22015
[{"success":"/scenes/8 deleted"}]
22017
=== 22049
Method: DELETE
requestedUri: api/api/scenes/4
URI: scenes/4
22050
[{"success":"/scenes/4 deleted"}]
22051
=== 22083
Method: DELETE
requestedUri: api/api/scenes/0
URI: scenes/0
22084
[{"success":"/scenes/0 deleted"}]
22085
=== 22121
Method: DELETE
requestedUri: api/api/scenes/9
URI: scenes/9
22122
[{"success":"/scenes/9 deleted"}]
22123
=== 22156
Method: DELETE
requestedUri: api/api/scenes/5
URI: scenes/5
22157
[{"success":"/scenes/5 deleted"}]
22159
=== 22188
Method: DELETE
requestedUri: api/api/scenes/1
URI: scenes/1
22189
[{"success":"/scenes/1 deleted"}]
22190
=== 22218
Method: DELETE
requestedUri: api/api/scenes/6
URI: scenes/6
22219
[{"success":"/scenes/6 deleted"}]
22221
=== 22248
Method: DELETE
requestedUri: api/api/scenes/2
URI: scenes/2
22249
[{"success":"/scenes/2 deleted"}]
22250
=== 22278
Method: DELETE
requestedUri: api/api/scenes/10
URI: scenes/10
22279
[{"success":"/scenes/10 deleted"}]
22280
opticron commented 7 years ago

Alright, so I'm not sure what's causing the hang there. I don't see any malformed/missing responses. Is there anything above that that looks suspect?

probonopd commented 7 years ago

No, nothing that looks suspect to me. Which app are you using this with?

opticron commented 7 years ago

I'm using the 1st and 2nd gen official Hue apps on Android, but the 2nd gen app on Android is apparently more finicky than it is on iOS and never gets far enough to do all the things you're doing.