点击或拖拽改变大小

MqttHelperHandleObjectMethod 方法 (MqttSession, MqttClientApplicationMessage, Object)

使用指定的对象来返回网络的API接口,前提是传入的数据为json参数,返回的数据为json数据,详细参照说明
Use the specified object to return the API interface of the network, provided that the incoming data is json parameters and the returned data is json data, please refer to the description for details

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static Task<OperateResult<string>> HandleObjectMethod(
	MqttSession mqttSession,
	MqttClientApplicationMessage message,
	Object obj
)

参数

mqttSession
类型:HslCommunication.MQTTMqttSession
当前的对话状态
message
类型:HslCommunication.MQTTMqttClientApplicationMessage
当前传入的消息内容
obj
类型:SystemObject
等待解析的api解析的对象

返回值

类型:TaskOperateResultString
等待返回客户的结果
参见