RUI3 (RAK Unified Interface 3) - RAK4631
bg77::qmtsub

Public Member Functions

String set (int, int, int,...)
 

Member Function Documentation

◆ set()

String set ( int  ,
int  ,
int  ,
  ... 
)
Description
This api is used to subscribe to one or more topics
Syntax
bg77.qmtsub.set(tcpconnectID,msgid,topics_count,topic,qos[,topic,qos...])
Parameters
tcpconnectIDint MQTT socket identifier. The range is 0-5.
msgidint Message identifier of packet. The range is 1-65535.
topics_countint numbers of topics
topicString The topic that the client wants to subscribe to or unsubscribe from.
qosint The QoS level at which the client wants to publish the messages.
  • 0 At most once
  • 1 At least once
  • 2 Exactly once
Returns
String response