C# Class MqttLib.Mqtt

Inheritance: IMqtt, IMqttShared
ファイルを表示 Open project: mlinnen/MqttDotNet

Private Properties

Property Type Description
DoConnect void
qosManager_MessageReceived void
tmrCallback void

Public Methods

Method Description
Connect ( ) : void
Connect ( bool cleanStart ) : void
Connect ( string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain ) : void
Connect ( string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain, bool cleanStart ) : void
Connect ( string userName, string password ) : void
Connect ( string userName, string password, bool cleanStart ) : void
Connect ( string username, string password, string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain ) : void
Connect ( string username, string password, string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain, bool cleanStart ) : void
Disconnect ( ) : void
Mqtt ( string connString, string clientID, IPersistence store ) : System
Publish ( MqttLib.MqttParcel parcel ) : int
Publish ( string topic, MqttLib.MqttPayload payload, QoS qos, bool retained ) : int
Subscribe ( Subscription subscriptions ) : int
Subscribe ( string topic, QoS qos ) : int
Subscribe ( Subscription subscription, PublishArrivedDelegate subscriber ) : void
Unsubscribe ( string topics ) : int
Unsubscribe ( string topic, PublishArrivedDelegate subscriber ) : void

Protected Methods

Method Description
OnConnected ( EventArgs e ) : void
OnConnectionLost ( EventArgs e ) : void
OnPublishArrived ( MqttLib.Core.Messages.MqttPublishMessage m ) : void
OnPublished ( MqttLib.CompleteArgs e ) : void
OnSubscribed ( MqttLib.CompleteArgs e ) : void
OnUnsubscribed ( MqttLib.CompleteArgs e ) : void

Private Methods

Method Description
DoConnect ( MqttConnectMessage conmsg ) : void
qosManager_MessageReceived ( object sender, MqttMessageReceivedEventArgs e ) : void
tmrCallback ( object args ) : void

Method Details

Connect() public method

public Connect ( ) : void
return void

Connect() public method

public Connect ( bool cleanStart ) : void
cleanStart bool
return void

Connect() public method

public Connect ( string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain ) : void
willTopic string
willQoS QoS
willMsg MqttLib.MqttPayload
willRetain bool
return void

Connect() public method

public Connect ( string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain, bool cleanStart ) : void
willTopic string
willQoS QoS
willMsg MqttLib.MqttPayload
willRetain bool
cleanStart bool
return void

Connect() public method

public Connect ( string userName, string password ) : void
userName string
password string
return void

Connect() public method

public Connect ( string userName, string password, bool cleanStart ) : void
userName string
password string
cleanStart bool
return void

Connect() public method

public Connect ( string username, string password, string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain ) : void
username string
password string
willTopic string
willQoS QoS
willMsg MqttLib.MqttPayload
willRetain bool
return void

Connect() public method

public Connect ( string username, string password, string willTopic, QoS willQoS, MqttLib.MqttPayload willMsg, bool willRetain, bool cleanStart ) : void
username string
password string
willTopic string
willQoS QoS
willMsg MqttLib.MqttPayload
willRetain bool
cleanStart bool
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Mqtt() public method

public Mqtt ( string connString, string clientID, IPersistence store ) : System
connString string
clientID string
store IPersistence
return System

OnConnected() protected method

protected OnConnected ( EventArgs e ) : void
e System.EventArgs
return void

OnConnectionLost() protected method

protected OnConnectionLost ( EventArgs e ) : void
e System.EventArgs
return void

OnPublishArrived() protected method

protected OnPublishArrived ( MqttLib.Core.Messages.MqttPublishMessage m ) : void
m MqttLib.Core.Messages.MqttPublishMessage
return void

OnPublished() protected method

protected OnPublished ( MqttLib.CompleteArgs e ) : void
e MqttLib.CompleteArgs
return void

OnSubscribed() protected method

protected OnSubscribed ( MqttLib.CompleteArgs e ) : void
e MqttLib.CompleteArgs
return void

OnUnsubscribed() protected method

protected OnUnsubscribed ( MqttLib.CompleteArgs e ) : void
e MqttLib.CompleteArgs
return void

Publish() public method

public Publish ( MqttLib.MqttParcel parcel ) : int
parcel MqttLib.MqttParcel
return int

Publish() public method

public Publish ( string topic, MqttLib.MqttPayload payload, QoS qos, bool retained ) : int
topic string
payload MqttLib.MqttPayload
qos QoS
retained bool
return int

Subscribe() public method

public Subscribe ( Subscription subscriptions ) : int
subscriptions Subscription
return int

Subscribe() public method

public Subscribe ( string topic, QoS qos ) : int
topic string
qos QoS
return int

Subscribe() public method

public Subscribe ( Subscription subscription, PublishArrivedDelegate subscriber ) : void
subscription Subscription
subscriber PublishArrivedDelegate
return void

Unsubscribe() public method

public Unsubscribe ( string topics ) : int
topics string
return int

Unsubscribe() public method

public Unsubscribe ( string topic, PublishArrivedDelegate subscriber ) : void
topic string
subscriber PublishArrivedDelegate
return void