readHumitureValue(id,choice)
Get the temperature or humidity value
Parameter
Parameters
Type
Description
id
unsigned char
ID number to be controlled, range 0 ~ 10
choice
char
Key in character for your options.
C – Obtain temperature in Celsius
F – Obtain temperature in Fahrenheit
H – Obtain humidity
Return Values
Parameters
Type
Description
number
int
Return the corresponding value
Example
Use the uKit Explore v2 board to display the temperature value in Celsius & Fahrenheit and humidity value every 400ms.
Last updated