MqttServerClientVerificationDelegate 委托 |
验证的委托
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public delegate int ClientVerificationDelegate(
MqttSession mqttSession,
string clientId,
string userName,
string password
)
Public Delegate Function ClientVerificationDelegate (
mqttSession As MqttSession,
clientId As String,
userName As String,
password As String
) As Integer
public delegate int ClientVerificationDelegate(
MqttSession^ mqttSession,
String^ clientId,
String^ userName,
String^ password
)
type ClientVerificationDelegate =
delegate of
mqttSession : MqttSession *
clientId : string *
userName : string *
password : string -> int
参数
- mqttSession
- 类型:HslCommunication.MQTTMqttSession
当前的MQTT的会话内容 - clientId
- 类型:SystemString
客户端的id - userName
- 类型:SystemString
用户名 - password
- 类型:SystemString
密码
返回值
类型:
Int320则是通过,否则,就是连接失败
参见