ResetResponse.cs 839 B

12345678910111213141516171819202122232425262728
  1. using ProGauge_StartItaliana_Probe.MessageEntity.Outgoing;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace ProGauge_StartItaliana_Probe.MessageEntity.Incoming
  7. {
  8. public class ResetResponse
  9. {
  10. /// <summary>
  11. /// sample: Reset 01872\LF\CR
  12. /// 01872 is the device physical address value.
  13. /// </summary>
  14. public string ResultRawStr { get; private set; }
  15. /// <summary>
  16. ///
  17. /// </summary>
  18. /// <param name="raw">Each number is referred to a temperature sensor inside the probe.</param>
  19. public static ResetResponse Parse(byte[] raw)
  20. {
  21. var response = new ResetResponse();
  22. response.ResultRawStr = Encoding.ASCII.GetString(raw);
  23. return response;
  24. }
  25. }
  26. }