Tizen Native API
5.5
|
The Temperature API provides functions to get information about the temperature.
Required Header
#include <device/temperature.h>
Overview
The Temperature API provides the way to get the current thermal value such as Application Processor, Communication Processor and Battery.
Overview
This API is related with the following features:
- http://tizen.org/feature/thermistor.ap
- http://tizen.org/feature/thermistor.cp
- http://tizen.org/feature/thermistor.battery
It is recommended to use features in your application for reliability.
You can check if the device supports the related features for this API by using System Information, and control your application's actions accordingly.
To ensure your application is running only on devices with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on using features in your application can be found in the feature element description.
Functions | |
int | device_thermal_get_temperature (device_thermal_e type, int *temp) |
Gets the temperature value. |
Enumeration Type Documentation
enum device_thermal_e |
Function Documentation
int device_thermal_get_temperature | ( | device_thermal_e | type, |
int * | temp | ||
) |
Gets the temperature value.
- Since :
- 5.5
- Parameters:
-
[in] type The index of the device [out] temp The temperature value in degrees Celsius
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
DEVICE_ERROR_NONE Successful DEVICE_ERROR_NOT_SUPPORTED Not supported device DEVICE_ERROR_INVALID_PARAMETER Invalid parameter DEVICE_ERROR_OPERATION_FAILED Operation failed