lrwn 4.13.0

Library for encoding / decoding LoRaWAN frames.
Documentation
1
2
3
4
5
6
7
8
9
10
use anyhow::Result;

pub mod clocksync;
pub mod fragmentation;
pub mod multicastsetup;

pub trait PayloadCodec<Struct = Self> {
    fn decode(b: &[u8]) -> Result<Struct>;
    fn encode(&self) -> Result<Vec<u8>>;
}