Update README.md
This commit is contained in:
@@ -8,6 +8,7 @@ Library for managing Wake-on-LAN packets. It supports:
|
|||||||
From string representation of MAC address and using defaults when broadcasting:
|
From string representation of MAC address and using defaults when broadcasting:
|
||||||
```rust
|
```rust
|
||||||
extern crate wakey;
|
extern crate wakey;
|
||||||
|
|
||||||
let wol = wakey::WolPacket::from_string("01:02:03:04:05:06", ':');
|
let wol = wakey::WolPacket::from_string("01:02:03:04:05:06", ':');
|
||||||
match wol.send_magic() {
|
match wol.send_magic() {
|
||||||
Ok(_) => println!("Sent the magic packet!"),
|
Ok(_) => println!("Sent the magic packet!"),
|
||||||
|
|||||||
Reference in New Issue
Block a user