micropelt 1.1.8

Micropelt device communication definitions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

use crate::lorawan::Downlink as _;

#[test]
fn serialise_default() {
    let downlink = Downlink {
        irun_to_mounting: 0x13,
        irun_to_0: 0x1f,
        sgthrs: 0x0f,
    };
    let bytes = downlink.serialise().unwrap().payload;
    assert_eq!(vec![0x13, 0x1f, 0x0f], bytes);
}