Skip to content

Instantly share code, notes, and snippets.

@andreareginato
Created December 5, 2014 13:44
Show Gist options
  • Save andreareginato/9a943d70390df6e16408 to your computer and use it in GitHub Desktop.
Save andreareginato/9a943d70390df6e16408 to your computer and use it in GitHub Desktop.
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