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

add polling of dbus #8

Merged
merged 4 commits into from
Feb 22, 2018
Merged

add polling of dbus #8

merged 4 commits into from
Feb 22, 2018

Conversation

mpvader
Copy link
Contributor

@mpvader mpvader commented Feb 19, 2018

No description provided.

see next commit for why
The new overall picture is:
- at startup, list services and for each of them request all data
- set a timer to poll all data for all tracked D-Bus services on
  a 20 second interval.
- whenever a new service appears (ie. a new device is connected to Venus),
  poll it & add to the list.
- whenever a service is removed from the bus (ie. a devices is unplugged
  from Venus), remove it from the list.
- in between the poll interval Venus will send all changed data, which is
  forwarded to signalk as usual.

This fixes (possible) issues with stale data being resent.

#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants