#[repr(C)]
pub struct mesh_router_t { pub ssid: [u8; 32], pub ssid_len: u8, pub bssid: [u8; 6], pub password: [u8; 64], pub allow_router_switch: bool, }
Expand description

@brief Router configuration

Fields

ssid: [u8; 32]

< SSID

ssid_len: u8

< length of SSID

bssid: [u8; 6]

< BSSID, if this value is specified, users should also specify “allow_router_switch”.

password: [u8; 64]

< password

allow_router_switch: bool

< if the BSSID is specified and this value is also set, when the router of this specified BSSID fails to be found after “fail” (mesh_attempts_t) times, the whole network is allowed to switch to another router with the same SSID. The new router might also be on a different channel. The default value is false. There is a risk that if the password is different between the new switched router and the previous one, the mesh network could be established but the root will never connect to the new switched router.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.