From ad8c0ab2fb631fcedb4f9138420ac4015068efc3 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Sun, 10 Sep 2023 14:56:00 +0300 Subject: [PATCH] Fix HomeKit pairing for some cameras --- pkg/hap/client_pairing.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/hap/client_pairing.go b/pkg/hap/client_pairing.go index 7cb10b24..baec7be5 100644 --- a/pkg/hap/client_pairing.go +++ b/pkg/hap/client_pairing.go @@ -156,6 +156,8 @@ func (c *Client) Pair(feature, pin string) (err error) { Proof string `tlv8:"4"` // server proof State byte `tlv8:"6"` Error byte `tlv8:"7"` + + EncryptedData string `tlv8:"5"` // skip EncryptedData validation (for MFi devices) } if err = tlv8.UnmarshalReader(res.Body, &plainM4); err != nil { return