点击或拖拽改变大小

MqttServerReportOperateResult 方法 (MqttSession, String)

向客户端发布一个失败的操作信息,仅用于同步网络的时候反馈失败结果,将错误的信息反馈回客户端,客户端就知道服务器发生了什么,为什么反馈失败。
Publish a failed operation information to the client, which is only used to feed back the failure result when synchronizing the network. If the error information is fed back to the client, the client will know what happened to the server and why the feedback failed.

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public void ReportOperateResult(
	MqttSession session,
	string message
)

参数

session
类型:HslCommunication.MQTTMqttSession
当前的网络会话
message
类型:SystemString
错误的消息文本信息
参见