public static int tdSensorValue(IntPtr protocol, IntPtr model, int id, int dataType, IntPtr value, int valueLength, IntPtr timestamp) { if (isWindows) { return(WindowsWrapper.tdSensorValue(protocol, model, id, dataType, value, valueLength, timestamp)); } else { return(UnixWrapper.tdSensorValue(protocol, model, id, dataType, value, valueLength, timestamp)); } }