Created
December 5, 2014 13:44
-
-
Save andreareginato/9a943d70390df6e16408 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Controller() { | |
// Init Client ID | |
_clientId = Guid.NewGuid().ToString(); | |
if (_clientId.Length > 20) | |
_clientId = _clientId.Substring(_clientId.Length - 20, 20); | |
// create client instance | |
_mqttClient = new MqttClient(IPAddress.Parse(LelylanCore.MqttBrokerAddress)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment