le_temp_interface.h
Go to the documentation of this file.
25 * @warning Some of the functions in this API may not be supported by your target. Please refer to52 * When temperature thresholds are reached, an event is sent with a string type that specifies the66 * - le_temp_SetThreshold() function allows the application to configure a threshold for a sensor.96 //--------------------------------------------------------------------------------------------------100 //--------------------------------------------------------------------------------------------------103 //--------------------------------------------------------------------------------------------------106 * Connect the current client thread to the service providing this API. Block until the service is109 * For each thread that wants to use this API, either ConnectService or TryConnectService must be110 * called before any other functions in this API. Normally, ConnectService is automatically called115 //--------------------------------------------------------------------------------------------------121 //--------------------------------------------------------------------------------------------------124 * Try to connect the current client thread to the service providing this API. Return with an error127 * For each thread that wants to use this API, either ConnectService or TryConnectService must be128 * called before any other functions in this API. Normally, ConnectService is automatically called137 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).140 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------150 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants153 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------166 * longer a connection to the service, and the functions in this API can't be used. For details, see171 //--------------------------------------------------------------------------------------------------178 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------254 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------void le_temp_DisconnectService(void)void le_temp_ConnectService(void)LE_FULL_API void le_temp_SetServerDisconnectHandler(le_temp_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_temp_RemoveThresholdEventHandler(le_temp_ThresholdEventHandlerRef_t handlerRef)le_result_t le_temp_GetSensorName(le_temp_SensorRef_t sensor, char *sensorName, size_t sensorNameSize)void(* le_temp_DisconnectHandler_t)(void *)Definition: le_temp_interface.h:101le_result_t le_temp_GetTemperature(le_temp_SensorRef_t sensor, int32_t *temperaturePtr)le_result_t le_temp_TryConnectService(void)le_temp_SensorRef_t le_temp_Request(const char *LE_NONNULL sensorName)le_result_t le_temp_GetThreshold(le_temp_SensorRef_t sensor, const char *LE_NONNULL threshold, int32_t *temperaturePtr)le_temp_ThresholdEventHandlerRef_t le_temp_AddThresholdEventHandler(le_temp_ThresholdEventHandlerFunc_t ThresholdEventHandlerPtr, void *contextPtr)le_result_t le_temp_SetThreshold(le_temp_SensorRef_t sensor, const char *LE_NONNULL threshold, int32_t temperature)le_result_t le_temp_StartMonitoring(void)