MqttServerPublishTopicPayload 方法 (MqttSession, String, Byte) |
向指定的客户端发送主题及负载数据
Sends the topic and payload data to the specified client
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public void PublishTopicPayload(
MqttSession session,
string topic,
byte[] payload
)
Public Sub PublishTopicPayload (
session As MqttSession,
topic As String,
payload As Byte()
)
public:
void PublishTopicPayload(
MqttSession^ session,
String^ topic,
array<unsigned char>^ payload
)
member PublishTopicPayload :
session : MqttSession *
topic : string *
payload : byte[] -> unit
参数
- session
- 类型:HslCommunication.MQTTMqttSession
会话内容 - topic
- 类型:SystemString
主题 - payload
- 类型:SystemByte
消息内容
参见