tcpconnectID | int MQTT socket identifier. The range is 0-5. |
msgID | int Message identifier of packet. The range is 0-65535. It will be 0 only when <qos>=0. |
qos | int The QoS level at which the client wants to publish the messages.
- 0 At most once
- 1 At least once
- 2 Exactly once
|
retain | int Whether or not the server will retain the message after it has been delivered to the current subscribers.
- 0 The server will not retain the message after it has been delivered to the current subscribers
- 1 The server will retain the message after it has been delivered to the current subscribers
|
topic | String Topic that needs to be published. |
msglen | int Length of the message to be published. The range is 1-1548. Unit: byte. |
data | String data to be sent. |