Skip to main content

join

Function join 

Source
pub fn join<T>(
    addresses: &[(String, u16)],
    code: &JoinCode,
    request: &JoinRequest,
    take: impl FnOnce(&Admission, &str) -> Result<T>,
) -> Result<Taken<T>>
Expand description

Dials the pairing device at the first of addresses that answers, proves code, sends request and hands the admission to take, whose outcome the pairing device is told. Once take stored the admission the join stands, so a failed final ack is reported, not returned as an error.