MqttHelperHandleObjectMethod 方法 (MqttSession, MqttClientApplicationMessage, MqttRpcApiInfo) |
使用指定的对象来返回网络的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.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<string>> HandleObjectMethod(
MqttSession mqttSession,
MqttClientApplicationMessage message,
MqttRpcApiInfo apiInformation
)
Public Shared Function HandleObjectMethod (
mqttSession As MqttSession,
message As MqttClientApplicationMessage,
apiInformation As MqttRpcApiInfo
) As Task(Of OperateResult(Of String))
public:
static Task<OperateResult<String^>^>^ HandleObjectMethod(
MqttSession^ mqttSession,
MqttClientApplicationMessage^ message,
MqttRpcApiInfo^ apiInformation
)
static member HandleObjectMethod :
mqttSession : MqttSession *
message : MqttClientApplicationMessage *
apiInformation : MqttRpcApiInfo -> Task<OperateResult<string>>
参数
- mqttSession
- 类型:HslCommunication.MQTTMqttSession
当前的对话状态 - message
- 类型:HslCommunication.MQTTMqttClientApplicationMessage
当前传入的消息内容 - apiInformation
- 类型:HslCommunication.MQTTMqttRpcApiInfo
当前已经解析好的Api内容对象
返回值
类型:
TaskOperateResultString等待返回客户的结果
参见