| Crates.io | pk-command |
| lib.rs | pk-command |
| version | 1.1.0 |
| created_at | 2025-06-15 09:33:38.191047+00 |
| updated_at | 2025-06-15 10:06:11.117982+00 |
| description | A communication protocol designed for embedded devices |
| homepage | https://github.com/lingrottin/PK-Command |
| repository | https://github.com/lingrottin/PK-Command.git |
| max_upload_size | |
| id | 1713113 |
| size | 105,220 |
[中文]
This repository contains the specification and an implementation of the PK Command, a communication protocol designed for embedded devices.
This Rust library is universal on both host and device. The caller needs to construct a PkCommand instance on the host or device and keep calling the instance's poll method.
Variable and method management is provided by types that implement the PkVariableAccessor and PkMethodAccessor traits, where the non-blocking mechanism of methods is based on the Pollable trait. This library also provides predefined PkVHashmapWrapper (for variables), PkMHashmapWrapper (for methods), and PkPollable.
See the test case.