NCS Mesh: Undefined reference to `bt_mesh_sensor_apparent_energy32'

I get build error "undefined reference to `bt_mesh_sensor_apparent_energy32'" if I try to add this sensor type.

Rest of my sensors are included but this one not (e.g. bt_mesh_sensor_apparent_power is included). I also tried to set CONFIG_BT_MESH_SENSOR_ALL_TYPES=y and BT_MESH_SENSOR_TYPE_FORCE for this sensor type, however that did not solve the error. I see same issue in nrf mesh sensor sever sample project if I change sensor type there.

If I remove 32 from type name in sensor_types.h then it builds. SDK version 1.7.0. Seems like typo to me.

Parents Reply Children
No Data
Related