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

The `Client` behaviour can now be used with `use` #178

Open joshk opened 6 months ago

joshk commented 6 months ago

This allows people to use the defaults and override the implementations they want without having to implement all of them. The ClientTest no longer really makes sense, so I've removed it. This does remove the function value checking that apply_wrap was doing, although I think its fair that this be a responsibility of people implementing the behaviour or overriding the default.