le_temp_interface.h
Go to the documentation of this file.
49 * When temperature thresholds are reached, an event is sent with a string type that specifies the63 * - le_temp_SetThreshold() function allows the application to configure a threshold for a sensor.91 //--------------------------------------------------------------------------------------------------94 * Connect the current client thread to the service providing this API. Block until the service is98 * called before any other functions in this API. Normally, ConnectService is automatically called103 //--------------------------------------------------------------------------------------------------109 //--------------------------------------------------------------------------------------------------112 * Try to connect the current client thread to the service providing this API. Return with an error115 * For each thread that wants to use this API, either ConnectService or TryConnectService must be116 * called before any other functions in this API. Normally, ConnectService is automatically called123 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.124 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).127 //--------------------------------------------------------------------------------------------------133 //--------------------------------------------------------------------------------------------------139 * longer a connection to the service, and the functions in this API can't be used. For details, see144 //--------------------------------------------------------------------------------------------------151 //--------------------------------------------------------------------------------------------------155 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------167 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------213 (219 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------243 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------272 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------323 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------344 //--------------------------------------------------------------------------------------------------354 //--------------------------------------------------------------------------------------------------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:213le_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:198