Closed GermanSheepDog closed 5 years ago
No, the code is correct: when client connects, you get HOMEKIT_EVENT_CLIENT_CONNECTED event. By that time it's just socket connection, but if there are no pairings yet, there is a big chance that client has connected to pair (and thus transitioning to pairing state). If client has connected and there is a pairing already, then do not do anything: by that time pairing is disabled and client will try pairing and fail or it will do pair verification and proceed managing accessory as usual.
I found a little challenge at led_status example (line 6):
I would have expected at line 6: