picoos-ow
1.xxxx
|
int | ReadTemperature (int portnum, uchar *SerialNum, float *Temp) |
int ReadTemperature | ( | int | portnum, |
uchar * | SerialNum, | ||
float * | Temp | ||
) |
Read the temperature of a DS1920/DS1820
'portnum' - number 0 to MAX_PORTNUM-1. This number was provided to OpenCOM to indicate the port number. 'SerialNum' - Serial Number of DS1920/DS1820 to read temperature from 'Temp ' - pointer to variable where that temperature will be returned
Returns: TRUE(1) temperature has been read and verified FALSE(0) could not read the temperature, perhaps device is not in contact