Const Tag
Tag: object
BackOff
BackOff: number = 8
EncryptedData
EncryptedData: number = 5
ErrorCode
ErrorCode: number = 7
MFiCertificate
MFiCertificate: number = 9
MFiSignature
MFiSignature: number = 10
PairingMethod
PairingMethod: number = 0
PublicKey
PublicKey: number = 3
Sequence
Sequence: number = 6
Signature
Signature: number = 10
Username
Username: number = 1
Type Length Value encoding/decoding, used by HAP as a wire format. https://en.wikipedia.org/wiki/Type-length-value
Originally based on code from github:KhaosT/HAP-NodeJS@0c8fd88 used used per the terms of the Apache Software License v2.
Original code copyright Khaos Tian khaos.tian@gmail.com
Modifications copyright Zach Bean zb@forty2.com