nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
sensor_state_event Struct Reference

Sensor state event. More...

#include <sensor_event.h>

Data Fields

struct app_event_header header
 
const char * descr
 
enum sensor_state state
 

Detailed Description

Sensor state event.

The sensor state event is submitted when state of a sensor changes.

The description field is a pointer to a string that is used to identify the sensor by the application. The Common Application Framework does not impose any standard way of describing sensors. Format and content of the sensor description is defined by the application.

Note
The sensor state event related to the given sensor must use the same description as sensor_event related to the sensor.

The documentation for this struct was generated from the following file: