Tizen Native API
5.5
|
The Temperature API provides functions to get information about the temperature.
#include <device/temperature.h>
The Temperature API provides the way to get the current thermal value such as Application Processor, Communication Processor and Battery.
This API is related with the following features:
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. |
enum device_thermal_e |
int device_thermal_get_temperature | ( | device_thermal_e | type, |
int * | temp | ||
) |
Gets the temperature value.
[in] | type | The index of the device |
[out] | temp | The temperature value in degrees Celsius |
0
on success, otherwise a negative error value DEVICE_ERROR_NONE | Successful |
DEVICE_ERROR_NOT_SUPPORTED | Not supported device |
DEVICE_ERROR_INVALID_PARAMETER | Invalid parameter |
DEVICE_ERROR_OPERATION_FAILED | Operation failed |