コード例 #1
0
 private int[] SensorGetAllValues(SensorsEnum sensorCommand)
 {
     byte[] buff =
     {
         (byte)sensorCommand
     };
     byte[] answer = SendCommand(ControllerEnum.SensorsController, buff, true);
     return(answer.ArrayToArrayNums(Delimiter));
 }
コード例 #2
0
 private int SensorGetValue(SensorsEnum sensorCommand, int num)
 {
     byte[] buff   = num.NumToArray().Add((byte)sensorCommand, 0);
     byte[] answer = SendCommand(ControllerEnum.SensorsController, buff, true);
     return(answer.ArrayToNum());
 }