I successfully opened the SSL / TLS connection for pairing and sent all the necessary messages back and forth. I encounter a problem when posting a secret, but on a GTV. For some reason, he says my secret is bad by sending a message with the BadSecret status. I decided to use hexadecimal encoding for privacy.
Here is my hexadecimal representation of the entire secret protocol buffer.
00 00 00 0d 08 01 10 c8 01 18 28 22 04 0a 02 e2 7a
Note that the first four bytes refer to the size of the message. Everything in between is for external communication. The last two bytes are my actual password. e27a was the secret code that appeared on the GTV.
If anyone knows why the GTV can answer that the secret is bad, I would really appreciate it.
source share