This is a read-only mirror for now.
Find a file
Vinzenz Schroeter 76907a8e3d version 0.2
2024-05-12 18:29:49 +02:00
examples fix c api, add usage example 2024-05-12 18:28:53 +02:00
servicepoint2 version 0.2 2024-05-12 18:29:49 +02:00
.gitignore fix c api, add usage example 2024-05-12 18:28:53 +02:00
Cargo.lock version 0.2 2024-05-12 18:29:49 +02:00
Cargo.toml one workspace for everything 2024-05-12 14:01:49 +02:00
LICENSE Create LICENSE 2024-05-12 00:10:34 +02:00
README.md remove dependency on num 2024-05-12 13:11:42 +02:00
rustfmt.toml reformat with max width 2024-05-11 23:28:08 +02:00

servicepoint

crates.io Crates.io Total Downloads docs.rs GPLv3 licensed

In CCCB, there is a big pixel matrix hanging on the wall. It is called "Service Point Display" or "Airport Display". This repository contains a library for parsing, encoding and sending packets to this display via UDP.

This library is still in early development. You can absolutely use it and it works, but expect minor breaking changes with every version bump. Please specify the full version including patch in your Cargo.toml until 1.0 is released.

Installation

# release version
cargo add servicepoint2

# development version
cargo add --git https://github.com/kaesaecracker/servicepoint.git

Example

fn main() {
    // establish connection
    let connection = servicepoint2::Connection::open("172.23.42.29:2342")
        .expect("connection failed");

    // clear screen content
    connection.send(servicepoint2::Command::Clear)
        .expect("send failed");
}

More are available in the examples folder.

Features

This library has multiple compression libraries as optional dependencies. If you do not need compression/decompression support you can disable those features. In the likely case you only need one of them, you can include that one specifically.

[dependencies.servicepoint2]
git = "https://github.com/kaesaecracker/servicepoint.git"
default-features = false
features = ["compression-bz"]

Projects using the library