pub struct WifiProvMgr<T>where
T: WiFiProvTransportTrait,{ /* private fields */ }Implementations§
Source§impl WifiProvMgr<WiFiProvTransportSoftAp>
impl WifiProvMgr<WiFiProvTransportSoftAp>
pub fn new( wifi: Arc<Mutex<WifiMgr<'static>>>, config: WiFiProvSoftApConfig, nvs_partition: NvsPartition, sec: ProtocommSecurity, ) -> Result<WiFiProvMgrSoftAp, Error>
Source§impl WifiProvMgr<WiFiProvTransportBle>
impl WifiProvMgr<WiFiProvTransportBle>
pub fn new( wifi: Arc<Mutex<WifiMgr<'static>>>, config: WifiProvBleConfig, nvs_partition: NvsPartition, sec: ProtocommSecurity, ) -> Result<WiFiProvMgrBle, Error>
Source§impl<T: WiFiProvTransportTrait> WifiProvMgr<T>
impl<T: WiFiProvTransportTrait> WifiProvMgr<T>
Sourcepub fn wait_for_provisioning(&self)
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.
Sourcepub fn add_endpoint(&mut self, ep_name: &str, cb: ProtocommCallbackType)
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.
Sourcepub fn is_provisioned(&self) -> Option<(String, String)>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more