- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the mesh_sensor_publish_timer_callback there is following instruction:
meshmesh_sensor_current_value = mesh_sensor_get_current_value();
Here is definition of mesh_sensor_get_current_value function:
int32_t mesh_sensor_get_current_value(void)
{
return presence_detected;
}
But I didn't find where presence_detected is assigned ???
Any comments ?
Thanks
Solved! Go to Solution.
- Tags:
- motion sensor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It is assigned and the value will be changed at various points in the program depending upon the conditions.
#181 wiced_bool_t presence_detected = WICED_FALSE;
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It is assigned and the value will be changed at various points in the program depending upon the conditions.
#181 wiced_bool_t presence_detected = WICED_FALSE;
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But it happens that the presence is detected, then, the variable presence_detected should be assigned with the value TRUE.
Where such an assignment is made ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please see the function definition of e93196_int_proc() and mesh_sensor_presence_detected_timer_callback().
presence_detected value is getting changed in these.
Thanks,
-Dheeraj