People Count Sensor#

The People Count Sensor is an application-level software module that simulates a people count sensor behavior. Provides interface for setting and getting and also for increasing and decreasing the simulated people count value. This component is prepared for integration into SOC applications. This is a No-Code component, if it is used with Sensor Server to broadcast people count data to sensor clients.

Function Documentation#

sl_btmesh_set_people_count#

void sl_btmesh_set_people_count (count16_t people_count)
Parameters
TypeDirectionArgument NameDescription
count16_t[in]people_count

People count value to set

Set the people count value. It could be used to initialize the sensor.


sl_btmesh_get_people_count#

count16_t sl_btmesh_get_people_count (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Get the current people count value measured by sensor.

Returns

  • Current value of people count.


sl_btmesh_people_count_increase#

void sl_btmesh_people_count_increase (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Increase people count value by one. After exceeding the maximum value it set people count to value is not known.


sl_btmesh_people_count_decrease#

void sl_btmesh_people_count_decrease (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Decrease people count value by one if value is known and greater than 0.