le_temp_interface.h
Go to the documentation of this file.
52 * 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.95 //--------------------------------------------------------------------------------------------------99 //--------------------------------------------------------------------------------------------------102 //--------------------------------------------------------------------------------------------------105 * Connect the current client thread to the service providing this API. Block until the service is108 * For each thread that wants to use this API, either ConnectService or TryConnectService must be109 * called before any other functions in this API. Normally, ConnectService is automatically called114 //--------------------------------------------------------------------------------------------------120 //--------------------------------------------------------------------------------------------------123 * Try to connect the current client thread to the service providing this API. Return with an error126 * For each thread that wants to use this API, either ConnectService or TryConnectService must be127 * called before any other functions in this API. Normally, ConnectService is automatically called136 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).139 //--------------------------------------------------------------------------------------------------145 //--------------------------------------------------------------------------------------------------149 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants152 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------165 * longer a connection to the service, and the functions in this API can't be used. For details, see170 //--------------------------------------------------------------------------------------------------177 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------229 (238 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------280 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------300 //--------------------------------------------------------------------------------------------------308 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------326 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------366 //--------------------------------------------------------------------------------------------------void le_temp_DisconnectService(void)void le_temp_ConnectService(void)void(* le_temp_ThresholdEventHandlerFunc_t)(le_temp_SensorRef_t sensor, const char *LE_NONNULL threshold, void *contextPtr)Definition: le_temp_interface.h:229void 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:100le_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)void le_temp_SetServerDisconnectHandler(le_temp_DisconnectHandler_t disconnectHandler, void *contextPtr)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)struct le_temp_ThresholdEventHandler * le_temp_ThresholdEventHandlerRef_tDefinition: le_temp_interface.h:220