Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/turbo87/aprs-parser-rs
APRS message parser for Rust
https://github.com/turbo87/aprs-parser-rs
aprs aprs-is ogn
Last synced: 7 days ago
JSON representation
APRS message parser for Rust
- Host: GitHub
- URL: https://github.com/turbo87/aprs-parser-rs
- Owner: Turbo87
- License: apache-2.0
- Created: 2018-05-23T22:56:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T04:13:58.000Z (9 months ago)
- Last Synced: 2024-05-02T00:10:11.665Z (8 months ago)
- Topics: aprs, aprs-is, ogn
- Language: Rust
- Homepage:
- Size: 938 KB
- Stars: 11
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
README
aprs-parser
==============================================================================[![Build Status](https://travis-ci.org/Turbo87/aprs-parser-rs.svg?branch=master)](https://travis-ci.org/Turbo87/aprs-parser-rs)
[APRS] message parser for [Rust]
[APRS]: http://www.aprs.org/
[Rust]: https://www.rust-lang.org/Features
--------------------------------------
- Supports packet encoding and decoding
- Supports textual representations (APRS-IS) as well as binary/AX.25 representations (KISS)Usage
------------------------------------------------------------------------------```rust
extern crate aprs_parser;fn main() {
let result = aprs_parser::parse(
br"ICA3D2>APRS,qAS,dl4mea:/074849h4821.61N\01224.49E^322/103/A=003054"
);println!("{:#?}", result);
// Ok(
// AprsPacket {
// from: Callsign {
// call: "IC17F2",
// ssid: None,
// },
// via: [
// QConstruct(
// AS,
// ),
// Callsign(
// Callsign {
// call: "dl4mea",
// ssid: None,
// },
// false,
// ),
// ],
// data: Position(
// AprsPosition {
// to: Callsign {
// call: "APRS",
// ssid: None,
// },
// timestamp: Some(
// HHMMSS(
// 7,
// 48,
// 49,
// ),
// ),
// messaging_supported: false,
// latitude: Latitude(
// 48.36016666666667,
// ),
// longitude: Longitude(
// 12.408166666666666,
// ),
// precision: HundredthMinute,
// symbol_table: '\\',
// symbol_code: '^',
// comment: [
// 51,
// 50,
// 50,
// 47,
// 49,
// 48,
// 51,
// 47,
// 65,
// 61,
// 48,
// 48,
// 51,
// 48,
// 53,
// 52,
// ],
// cst: Uncompressed,
// },
// ),
// },
// )
}
```License
------------------------------------------------------------------------------This project is licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or
)at your option.