plato-hook-helper

Crates.ioplato-hook-helper
lib.rsplato-hook-helper
version0.1.0
sourcesrc
created_at2024-04-09 01:47:12.603843
updated_at2024-04-09 01:47:12.603843
descriptiona set of utility functions to assist with writing fetch hooks for the Plato e-reader document system.
homepage
repositoryhttps://github.com/videah/plato-hook-helper
max_upload_size
id1201658
size8,175
(videah)

documentation

README

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();
Commit count: 1

cargo fmt