#hook #assist #system #fetch #document #e-reader #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

#705 in Network programming

Download history 135/week @ 2024-04-09

135 downloads per month

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.7–1.5MB
~34K SLoC