Skip to content
No description, website, or topics provided.
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore Initial commit. Simple working parser. Mar 19, 2016
.travis.yml
Cargo.lock
Cargo.toml
LICENSE
README.md tidy up readme/examples Mar 18, 2017

README.md

ukhasnet-parser

A parser for the UKHASnet protocol written in Rust.

See the examples directory for further usage, or simply:

extern crate ukhasnet_parser;

use ukhasnet_parser::{parse};

pub fn main() {
    let s = "2bT12,15H38:test[AG]".to_owned();
    match parse(&s) {
        Ok(p) => println!("{:?}", p),
        Err(e) => println!("{}", e),
    }
}
$ cargo run --example simple
Packet { repeat: 2, sequence: 'b', data: [Temperature([12, 15]), Humidity([38])], comment: Some("test"), path: ["AG"] }
You can’t perform that action at this time.