1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! The transports underneath the message layer.
//!
//! Matter's message format (§4.4) is carried over three things: IPv6 UDP, TCP, and BLE. The
//! first two are datagram-shaped and need nothing between them and [`crate::messaging`] —
//! a UDP payload *is* a Matter message, and the platform's socket delivers it whole.
//!
//! BLE is not. A GATT PDU carries at most `ATT_MTU - 3` octets — twenty, on the minimum MTU —
//! and has no flow control at the transport layer. [`btp`] is the protocol that bridges the
//! gap, and [`ble`] is its surface against the radio: the GATT service it lives in and the
//! advertisement a commissioner scans for.
//!
//! Both are sans-I/O, like the rest of the crate: they take bytes and a clock reading and
//! hand back bytes and deadlines. What actually drives the radio belongs to the platform.
bitflags!