private int[] SensorGetAllValues(SensorsEnum sensorCommand) { byte[] buff = { (byte)sensorCommand }; byte[] answer = SendCommand(ControllerEnum.SensorsController, buff, true); return(answer.ArrayToArrayNums(Delimiter)); }
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()); }