C# Class HomeSecurity.Web.Hubs.HomeSecurityHub

Inheritance: Hub
Exibir arquivo Open project: mlinnen/CloudHomeSecurity

Public Methods

Method Description
ConnectToBroker ( ) : void
HomeSecurityHub ( ) : System
PublishCurrentState ( ) : void
PublishMessage ( string topic, string msg ) : void
Send ( string message ) : void
SendConnectedMQTTClients ( int count ) : void

Private Methods

Method Description
ConnectToBroker ( string ip, int port, string clientId ) : void
_client_Connected ( object sender, EventArgs e ) : void
_client_ConnectionLost ( object sender, EventArgs e ) : void
_client_PublishArrived ( object sender, MqttLib.PublishArrivedArgs e ) : bool
_client_Published ( object sender, MqttLib.CompleteArgs e ) : void
_client_Subscribed ( object sender, MqttLib.CompleteArgs e ) : void
_client_Unsubscribed ( object sender, MqttLib.CompleteArgs e ) : void

Method Details

ConnectToBroker() public method

public ConnectToBroker ( ) : void
return void

HomeSecurityHub() public method

public HomeSecurityHub ( ) : System
return System

PublishCurrentState() public method

public PublishCurrentState ( ) : void
return void

PublishMessage() public method

public PublishMessage ( string topic, string msg ) : void
topic string
msg string
return void

Send() public method

public Send ( string message ) : void
message string
return void

SendConnectedMQTTClients() public method

public SendConnectedMQTTClients ( int count ) : void
count int
return void