le_temp_interface.h
Go to the documentation of this file.
50 * When temperature thresholds are reached, an event is sent with a string type that specifies the64 * - le_temp_SetThreshold() function allows the application to configure a threshold for a sensor.92 //--------------------------------------------------------------------------------------------------95 * Connect the current client thread to the service providing this API. Block until the service is99 * called before any other functions in this API. Normally, ConnectService is automatically called104 //--------------------------------------------------------------------------------------------------110 //--------------------------------------------------------------------------------------------------113 * Try to connect the current client thread to the service providing this API. Return with an error116 * For each thread that wants to use this API, either ConnectService or TryConnectService must be117 * called before any other functions in this API. Normally, ConnectService is automatically called124 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.125 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).128 //--------------------------------------------------------------------------------------------------134 //--------------------------------------------------------------------------------------------------140 * longer a connection to the service, and the functions in this API can't be used. For details, see145 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------156 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------164 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------177 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------190 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------198 //--------------------------------------------------------------------------------------------------202 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------214 (220 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------244 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------284 //--------------------------------------------------------------------------------------------------292 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------311 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------355 //--------------------------------------------------------------------------------------------------void le_temp_DisconnectService(void)void le_temp_ConnectService(void)void(* le_temp_ThresholdEventHandlerFunc_t)(le_temp_SensorRef_t sensor, const char *threshold, void *contextPtr)Definition: le_temp_interface.h:214le_temp_ThresholdEventHandlerRef_t le_temp_AddThresholdEventHandler(le_temp_ThresholdEventHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_temp_GetThreshold(le_temp_SensorRef_t sensor, const char *threshold, int32_t *temperaturePtr)le_temp_SensorRef_t le_temp_Request(const char *sensorName)le_result_t le_temp_GetSensorName(le_temp_SensorRef_t sensor, char *sensorName, size_t sensorNameNumElements)le_result_t le_temp_GetTemperature(le_temp_SensorRef_t sensor, int32_t *temperaturePtr)le_result_t le_temp_TryConnectService(void)le_result_t le_temp_SetThreshold(le_temp_SensorRef_t sensor, const char *threshold, int32_t temperature)void le_temp_RemoveThresholdEventHandler(le_temp_ThresholdEventHandlerRef_t addHandlerRef)le_result_t le_temp_StartMonitoring(void)struct le_temp_ThresholdEventHandler * le_temp_ThresholdEventHandlerRef_tDefinition: le_temp_interface.h:199