#hook #wifi #system #fetch #document #assist #plato

plato-hook-helper

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

1 unstable release

0.1.0 Apr 9, 2024

#9 in #assist

MIT license

7KB
118 lines

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();

lib.rs:

plato-hook-helper

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

Dependencies

~0.6–1.4MB
~31K SLoC