| Crates.io | plato-hook-helper |
| lib.rs | plato-hook-helper |
| version | 0.1.0 |
| created_at | 2024-04-09 01:47:12.603843+00 |
| updated_at | 2024-04-09 01:47:12.603843+00 |
| description | a set of utility functions to assist with writing fetch hooks for the Plato e-reader document system. |
| homepage | |
| repository | https://github.com/videah/plato-hook-helper |
| max_upload_size | |
| id | 1201658 |
| size | 8,175 |
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.
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();