Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read callback function is called before specified time interval #72

Open
luigiluz opened this issue Dec 2, 2019 · 0 comments
Open

Read callback function is called before specified time interval #72

luigiluz opened this issue Dec 2, 2019 · 0 comments
Assignees

Comments

@luigiluz
Copy link

luigiluz commented Dec 2, 2019

Describe the bug

I've tried using knot_data_config with a event flag of 10 seconds, it actually only sends data to cloud in a 10 seconds interval, but when I used minicom to check its log, I've discovered that it is calling the read callback function in a very short time interval.

To Reproduce
Steps to reproduce the behavior:
I've seen this using DHT11 example using KNoT Mesh board

  1. knot clean
  2. knot board mesh
  3. knot make
  4. knot flash
  5. minicom

Expected behavior
I've expected to only see the callback function being called every 10 seconds.

Impact
The code works properly sending data every 10 seconds, but I think this shouldn't happen once it is only supposed to be called in a 10 seconds interval.

Screenshots or console output
read_callback

Environment:

  • OS: Ubuntu 18.04
  • Zephyr KNoT SDK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants