Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

mpolden/wakeonlan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wakeonlan

An Elixir module for sending Wake-on-LAN packets.

Installation

  1. Add wakeonlan to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:wakeonlan, "~> 0.1.0"}]
end
```
  1. Run mix deps.get to 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)
102

Sending a magic packet:

iex> WOL.send("12:34:56:ab:cd:ef")
:ok

About

Wake-on-LAN module for Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages