wakeonlan
An Elixir module for sending Wake-on-LAN packets.
Installation
-
Add
wakeonlanto your list of dependencies inmix.exs:
```elixir
def deps do
[{:wakeonlan, "~> 0.1.0"}]
end
```-
Run
mix deps.getto install.
Examples
Creating a magic packet:
iex> magic_packet = WOL.magic_packet("12:34:56:ab:cd:ef")
iex> is_binary(magic_packet)
true
iex> byte_size(magic_packet)
102Sending a magic packet:
iex> WOL.send("12:34:56:ab:cd:ef")
:ok