MqttClientMqttMessageReceiveDelegate 委托 |
当接收到Mqtt订阅的信息的时候触发
Triggered when receiving Mqtt subscription information
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public delegate void MqttMessageReceiveDelegate(
MqttClient client,
MqttApplicationMessage message
)
Public Delegate Sub MqttMessageReceiveDelegate (
client As MqttClient,
message As MqttApplicationMessage
)
public delegate void MqttMessageReceiveDelegate(
MqttClient^ client,
MqttApplicationMessage^ message
)
type MqttMessageReceiveDelegate =
delegate of
client : MqttClient *
message : MqttApplicationMessage -> unit
参数
- client
- 类型:HslCommunication.MQTTMqttClient
收到消息时候的client实例对象 - message
- 类型:HslCommunication.MQTTMqttApplicationMessage
Mqtt的消息对象
参见