Versions in this module Expand all Collapse all v0 v0.9.0 Dec 15, 2015 Changes in this version + type Command struct + Head CommandEventHead + Params []tlv.TLV + func (c *Command) Marshal() ([]byte, error) + func (c *Command) UnMarshal(buf []byte) error + type CommandEventHead struct + Flag uint8 + No uint16 + ParamsCount uint16 + Priority uint16 + SubDeviceid uint16 + Timestamp uint64 + Token [16]byte + type Data struct + Head DataHead + SubData []SubData + func (d *Data) Marshal() ([]byte, error) + func (d *Data) UnMarshal(buf []byte) error + type DataHead struct + Flag uint8 + Timestamp uint64 + Token [16]byte + type Event struct + Head CommandEventHead + Params []tlv.TLV + func (e *Event) Marshal() ([]byte, error) + func (e *Event) UnMarshal(buf []byte) error + type Payload interface + Marshal func() ([]byte, error) + UnMarshal func([]byte) error + type SubData struct + Head SubDataHead + Params []tlv.TLV + type SubDataHead struct + ParamsCount uint16 + PropertyNum uint16 + SubDeviceid uint16