embedded-nano-mesh 2.0.0

Lightweight mesh communication protocol for embedded devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::ms;

pub const PACKET_QUEUE_SIZE: usize = 5;

/// Start byte of packet. The device will recognize
/// packets by this byte.
pub const PACKET_START_BYTE: u8 = b'x';

/// Start bytes count of packet.
pub const PACKET_START_BYTES_COUNT: usize = 3;

/// Count of filter's table, that holds reocords for packets, that
/// need to be ignored.
pub const RECEIVER_FILTER_REGISTRATION_SIZE: usize = 8;

/// Perid of time, during which duplicated packets will be ignored.
pub const RECEIVER_FILTER_DUPLICATE_IGNORE_PERIOD: ms = 1000;