pk-command

Crates.iopk-command
lib.rspk-command
version1.1.0
created_at2025-06-15 09:33:38.191047+00
updated_at2025-06-15 10:06:11.117982+00
descriptionA communication protocol designed for embedded devices
homepagehttps://github.com/lingrottin/PK-Command
repositoryhttps://github.com/lingrottin/PK-Command.git
max_upload_size
id1713113
size105,220
Enita Nureya (lingrottin)

documentation

https://docs.rs/pk-command

README

PK Command

Crates.io Version

[中文]

This repository contains the specification and an implementation of the PK Command, a communication protocol designed for embedded devices.

Library usage

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.

Example

See the test case.

The Protocol

Commit count: 0

cargo fmt