pub mod central;
pub mod peripheral;
use postcard::experimental::max_size::MaxSize;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Serialize, Deserialize, MaxSize)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct PeerAddress {
pub peer_id: u8,
pub is_valid: bool,
pub address: [u8; 6],
}
impl PeerAddress {
pub(crate) fn new(peer_id: u8, is_valid: bool, address: [u8; 6]) -> Self {
Self {
peer_id,
is_valid,
address,
}
}
}