Created
October 28, 2011 12:58
-
-
Save clausjoergensen/1322206 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
serialPort | |
.RequestResponse(MeterCommunicator.CreateRegisterPackage(1001), TimeSpan.FromSeconds(10), 3) | |
.ContinueWith(x => | |
{ | |
var register = MeterCommunicator.DecodeReadMeterRegister(x.Result); | |
if (register != null) | |
Console.WriteLine(register); | |
else | |
MeterCommunicator.PrintArray(x.Result); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment