Exemplo n.º 1
0
 public static double AsInt32(this CommandResponse response) => BitConverter.ToInt32(response.Content, 0);
Exemplo n.º 2
0
 public static double AsUInt64(this CommandResponse response) => BitConverter.ToUInt64(response.Content, 0);
Exemplo n.º 3
0
 public static double AsFloat(this CommandResponse response) => BitConverter.ToDouble(response.Content, 0);
Exemplo n.º 4
0
        // ------

        public static string AsString(this CommandResponse response) => ASCIIEncoding.ASCII.GetString(response.Content);
Exemplo n.º 5
0
 public static SpectrumData AsSpectrumData(this CommandResponse response) => new SpectrumData(response.Content);
Exemplo n.º 6
0
 public static SensorData AsSensorData(this CommandResponse response) => new SensorData(response.Content);
Exemplo n.º 7
0
 public static PeakData AsPeakData(this CommandResponse response) => new PeakData(response.Content);