Struct esp_idf_svc::hal::sys::wifi_prov_scheme
source · #[repr(C)]pub struct wifi_prov_scheme {
pub prov_start: Option<unsafe extern "C" fn(_: *mut protocomm, _: *mut c_void) -> i32>,
pub prov_stop: Option<unsafe extern "C" fn(_: *mut protocomm) -> i32>,
pub new_config: Option<unsafe extern "C" fn() -> *mut c_void>,
pub delete_config: Option<unsafe extern "C" fn(_: *mut c_void)>,
pub set_config_service: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: *const i8) -> i32>,
pub set_config_endpoint: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: u16) -> i32>,
pub wifi_mode: u32,
}
Expand description
@brief Structure for specifying the provisioning scheme to be followed by the manager
@note Ready to use schemes are available: - wifi_prov_scheme_ble : for provisioning over BLE transport + GATT server - wifi_prov_scheme_softap : for provisioning over SoftAP transport + HTTP server - wifi_prov_scheme_console : for provisioning over Serial UART transport + Console (for debugging)
Fields§
§prov_start: Option<unsafe extern "C" fn(_: *mut protocomm, _: *mut c_void) -> i32>
Function which is to be called by the manager when it is to start the provisioning service associated with a protocomm instance and a scheme specific configuration
prov_stop: Option<unsafe extern "C" fn(_: *mut protocomm) -> i32>
Function which is to be called by the manager to stop the provisioning service previously associated with a protocomm instance
new_config: Option<unsafe extern "C" fn() -> *mut c_void>
Function which is to be called by the manager to generate a new configuration for the provisioning service, that is to be passed to prov_start()
delete_config: Option<unsafe extern "C" fn(_: *mut c_void)>
Function which is to be called by the manager to delete a configuration generated using new_config()
set_config_service: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: *const i8) -> i32>
Function which is to be called by the manager to set the service name and key values in the configuration structure
set_config_endpoint: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: u16) -> i32>
Function which is to be called by the manager to set a protocomm endpoint with an identifying name and UUID in the configuration structure
wifi_mode: u32
Sets mode of operation of Wi-Fi during provisioning This is set to :
- WIFI_MODE_APSTA for SoftAP transport
- WIFI_MODE_STA for BLE transport
Trait Implementations§
source§impl Clone for wifi_prov_scheme
impl Clone for wifi_prov_scheme
source§fn clone(&self) -> wifi_prov_scheme
fn clone(&self) -> wifi_prov_scheme
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for wifi_prov_scheme
impl Debug for wifi_prov_scheme
source§impl Default for wifi_prov_scheme
impl Default for wifi_prov_scheme
source§fn default() -> wifi_prov_scheme
fn default() -> wifi_prov_scheme
impl Copy for wifi_prov_scheme
Auto Trait Implementations§
impl Freeze for wifi_prov_scheme
impl RefUnwindSafe for wifi_prov_scheme
impl Send for wifi_prov_scheme
impl Sync for wifi_prov_scheme
impl Unpin for wifi_prov_scheme
impl UnwindSafe for wifi_prov_scheme
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)