MqttServerReportObjectApiMethod 方法 |
使用指定的对象来返回网络的API接口,前提是传入的数据为json参数,返回的数据为 OperateResult<string> 数据,详细参照说明
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 OperateResult<string> data,
please refer to the description for details
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task ReportObjectApiMethod(
MqttSession session,
MqttClientApplicationMessage message,
Object apiObject
)
Public Function ReportObjectApiMethod (
session As MqttSession,
message As MqttClientApplicationMessage,
apiObject As Object
) As Task
public:
Task^ ReportObjectApiMethod(
MqttSession^ session,
MqttClientApplicationMessage^ message,
Object^ apiObject
)
member ReportObjectApiMethod :
session : MqttSession *
message : MqttClientApplicationMessage *
apiObject : Object -> Task
参数
- session
- 类型:HslCommunication.MQTTMqttSession
当前的会话内容 - message
- 类型:HslCommunication.MQTTMqttClientApplicationMessage
客户端发送的消息,其中的payload将会解析为一个json字符串,然后提取参数信息。 - apiObject
- 类型:SystemObject
当前的对象的内容信息
返回值
类型:
Task[缺少 "M:HslCommunication.MQTT.MqttServer.ReportObjectApiMethod(HslCommunication.MQTT.MqttSession,HslCommunication.MQTT.MqttClientApplicationMessage,System.Object)" 的 <returns> 文档]
参见