wake_on_lan 3.1.1+1 copy "wake_on_lan: ^3.1.1+1" to clipboard
wake_on_lan: ^3.1.1+1 copied to clipboard

Send wake on LAN magic packets to devices on your local network.

example/main.dart

import 'package:wake_on_lan/wake_on_lan.dart';

void main() async {
  // Create the IPv4  broadcast address
  String ip = '192.168.1.255';
  String mac = 'AA:BB:CC:DD:EE:FF';

  // Validate that the two strings are formatted correctly
  if (!IPv4Address.validate(ip)) return;
  if (!MACAddress.validate(mac)) return;

  // Create the IPv4 and MAC objects
  IPv4Address ipv4Address = IPv4Address(ip);
  MACAddress macAddress = MACAddress(mac);

  // Send the WOL packet
  WakeOnLAN(ipv4Address, macAddress).wake();
}
14
likes
0
pub points
70%
popularity

Publisher

verified publisherjagandeepbrar.io

Send wake on LAN magic packets to devices on your local network.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

convert

More

Packages that depend on wake_on_lan