Closed jlusiardi closed 6 years ago
The spec says that "The response is a group of TLV items with separator items to delineate them. Each pairing entry must be comprised of the following TLV items". It does not mention that those TLV items should be in exact order. Although this was not hard to change.
Hi Maxim,
i'll try to test this this weekend. Concerning the specs, i also thought, that ordering was irrelevant. But as far as I have understood, the spec never says that the order may be changed at will.
Regards Joachim
Hi,
the answer to list pairings (server.c lines 2625ff) seems to be reversed. IMHO list pairings is one of the few occasions that TLVs are dependend on a special order. The spec on page 55ff says to construct a TLV with items:
Everything after the separator is repeated for all additional pairings.
If I do such a request to a esp-homekit on a esp8266 I get: In python:
and also while monitoring the esp over serial line:
Is it possible to reverse the order of the items in the TLV so it is according to the specs? This would be a big advantage!
Regards Joachim
PS: up to this issue, your code works superb with my https://github.com/jlusiardi/homekit_python code. Good work!