WifiProvMgr

Struct WifiProvMgr 

Source
pub struct WifiProvMgr<T>{ /* private fields */ }

Implementations§

Source§

impl WifiProvMgr<WiFiProvTransportSoftAp>

Source

pub fn new( wifi: Arc<Mutex<WifiMgr<'static>>>, config: WiFiProvSoftApConfig, nvs_partition: NvsPartition, sec: ProtocommSecurity, ) -> Result<WiFiProvMgrSoftAp, Error>

Source§

impl WifiProvMgr<WiFiProvTransportBle>

Source

pub fn new( wifi: Arc<Mutex<WifiMgr<'static>>>, config: WifiProvBleConfig, nvs_partition: NvsPartition, sec: ProtocommSecurity, ) -> Result<WiFiProvMgrBle, Error>

Source§

impl<T: WiFiProvTransportTrait> WifiProvMgr<T>

Source

pub fn wait_for_provisioning(&self)

This function will block until node is not provisioned. It will return once first time WiFi connection has been established using provisioned credentials.

Source

pub fn add_endpoint(&mut self, ep_name: &str, cb: ProtocommCallbackType)

Adding additional endpoints to the pre-existing WiFi provisioning endpoints. It is useful for an endpoint with application specific information and purpose.

Source

pub fn start(&mut self) -> Result<(), Error>

This starts the provisioning process.

Source

pub fn is_provisioned(&self) -> Option<(String, String)>

Checkes if device is already provisioned. If provisioned, it returns the SSID and Password of provisioned WiFi network.

Auto Trait Implementations§

§

impl<T> Freeze for WifiProvMgr<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for WifiProvMgr<T>
where T: RefUnwindSafe,

§

impl<T> Send for WifiProvMgr<T>
where T: Send,

§

impl<T> !Sync for WifiProvMgr<T>

§

impl<T> Unpin for WifiProvMgr<T>
where T: Unpin,

§

impl<T> UnwindSafe for WifiProvMgr<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V