Created
December 5, 2014 13:54
-
-
Save andreareginato/e4347b253b6cbe13eec0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private void _mqttClient_MqttMsgPublishReceived(object sender, MqttMsgPublishEventArgs e) { | |
| var messageString = new String(Encoding.UTF8.GetChars(e.Message)); | |
| this._ledOnBoard.Write(messageString.IndexOf("on") > 0); | |
| LelylanPublish(messageString.IndexOf("on") > 0 ? "on" : "off"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment