nerves-hub / nerves_hub_link

Connect devices to NervesHub via a Phoenix channel
https://hex.pm/packages/nerves_hub_link
Apache License 2.0
36 stars 18 forks source link

Add device features support #228

Open jjcarstens opened 2 months ago

jjcarstens commented 2 months ago

Next idea of the previously defined "extensions"

This adds the mechanism to handle features on a device for custom data and/or reporting outside the update mechanism. Features are isolated from the socket as to not get in the way of potential updates and can be defined in external libs as well as this one by implementing the NervesHubLink.Features behavior.

joshk commented 1 month ago

Honestly, this code is looking solid to me!

lawik commented 3 days ago

Rebasing but should be good to review @joshk

This has had geo and health integrated into it.

I like the new abstraction. Nice and friendly.