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)
Type | Direction | Argument Name | Description |
---|---|---|---|
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 )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/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 )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/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 )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Decrease people count value by one if value is known and greater than 0.