my_sensors v0.1.0-rc2 MySensors.Transport behaviour

Behaviour for MySensors transports to implement.

Link to this section Summary

Callbacks

Validate opts passed to the transport

Write a packet

Link to this section Callbacks

Link to this callback opts(arg0)
opts(Keyword.t()) :: {:ok, Keyword.t()} | {:error, term()}

Validate opts passed to the transport.

Link to this callback write(arg0, arg1)
write(GenServer.server(), MySensors.Packet.t()) ::
  :ok |
  {:error, term()}

Write a packet.