Struct rust_tuyapi::mesparse::MessageParser
source · [−]pub struct MessageParser { /* private fields */ }Expand description
The message parser takes care of encoding and parsing messages before send and after receive. It uses a TuyaCipher to encrypt and decrypt messages sent with the Tuya protocol version 3.3.
Implementations
MessageParser encodes and parses messages sent to and from Tuya devices. It may or may not encrypt the message, depending on message type and TuyaVersion. Likewise, the parsing may or may not need decrypting.