Package 

Class MqttControlBuilder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Object data
      private String pv
      private String localKey
      private int protocol
      private int t
      private String topicId
      private int s
      private int o
    • Method Detail

      • getData

         Object getData()

        Get the data to publish to device.

      • setData

         MqttControlBuilder setData(Object data)

        Set the data to publish to device.

        Parameters:
        data - the data to publish to device.
      • getPv

         String getPv()

        Set mqtt protocol version.

      • getLocalKey

         String getLocalKey()

        Get device local secret key, device use it to encrypt message.

      • setLocalKey

         MqttControlBuilder setLocalKey(String localKey)

        Set device local secret key, device use it to encrypt message.

        Parameters:
        localKey - device local secret key.
      • getProtocol

         int getProtocol()

        Get Thing defined MQTT communication protocol number.

      • getT

         int getT()

        Get timestamp.

      • getTopicId

         String getTopicId()

        Get the topic to publish to.

      • getO

         int getO()

        Get the serial number of communication with the device.

      • setO

         MqttControlBuilder setO(int o)

        Set the serial number of communication with the device, it's a big random number.

      • getSn

         int getSn()

        Get message sequence number, each time you send will increment by 1.

      • setSn

         MqttControlBuilder setSn(int sn)

        Set message sequence number, each time you send will increment by 1.

        Parameters:
        sn - message sequence number.