MqttServerPublishAllClientTopicPayload 方法 |
向所有的客户端强制发送主题及负载数据,默认消息不驻留
Send subject and payload data to all clients compulsively, and the default message does not retain
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public void PublishAllClientTopicPayload(
string topic,
byte[] payload,
bool retain = false
)
Public Sub PublishAllClientTopicPayload (
topic As String,
payload As Byte(),
Optional retain As Boolean = false
)
public:
void PublishAllClientTopicPayload(
String^ topic,
array<unsigned char>^ payload,
bool retain = false
)
member PublishAllClientTopicPayload :
topic : string *
payload : byte[] *
?retain : bool
(* Defaults:
let _retain = defaultArg retain false
*)
-> unit
参数
- topic
- 类型:SystemString
主题 - payload
- 类型:SystemByte
消息内容 - retain (Optional)
- 类型:SystemBoolean
指示消息是否驻留
参见