/plato-hook-helper

a set of utility functions to assist with writing fetch hooks for the Plato e-reader document system.

Primary LanguageRustMIT LicenseMIT

plato-hook-helper

a set of utility functions to assist with writing fetch hooks for the Plato e-reader document system.

Implements events from the documented Plato Hook API.

Usage

let mut plato = PlatoHelper::default ();

// Display a notification on the device.
plato.display_notification("Turning on Wi-Fi...").unwrap();

// Enable the device's Wi-Fi.
plato.set_wifi(WifiStatus::Enabled).unwrap();

// Block and wait for the network to come up.
plato.wait_for_network_blocking().unwrap();