Bluetooth Mesh sensor formats and sensor types

All sensor formats and sensor types are collected in the include/bluetooth/mesh/sensor_types.h file, and are divided into the categories listed in the page index.

To keep the total flash usage down, the sensor types are only instantiated if they are referenced by the application. This behavior can be overridden by enabling CONFIG_BT_MESH_SENSOR_ALL_TYPES. Note that if the Sensor Client is enabled, CONFIG_BT_MESH_SENSOR_ALL_TYPES is enabled by default.

Sensor types can be forced into the build by the BT_MESH_SENSOR_TYPE_FORCE macro.

Sensor types may only be declared in the bt_mesh_sensor_types static linker section.

See Sensor types for information on how to use these sensor types and formats when initializing and using sensors.

Sensor types

Sensor formats

Percentage sensor formats

Percentage formats

Environmental sensor formats

Environmental formats

Time sensor formats

Time formats

Electrical sensor formats

Electrical formats

Lighting sensor formats

Lighting formats

Miscellaneous sensor formats

Miscellaneous formats

Sensor types

Occupancy sensor types

Occupancy types

Ambient temperature sensor types

Ambient temperature types

Environmental sensor types

Environmental types

Device operating temperature sensor types

Device operating temperature types

Electrical input sensor types

Electrical input types

Energy management sensor types

Energy management types

Photometry sensor types

Photometry types

Power supply output sensor types

Power supply output types

Warranty and Service sensor types

Warranty and service types