inet::Wifi
- Inherits: api::ExecutionContext
public
- Inherits: api::Api< wifi_api_t, WIFI_API_REQUEST >
public
- inet::Wifi::AuthInfo
- inet::Wifi::Info
- inet::Wifi::IpInfo
- inet::Wifi::ScanAttributes
- inet::Wifi::SsidInfo
Types
#
ScanRegion- north_america
- asia
#
Security- invalid
- open
- wep
- wpa_psk
- x802_1x
#
SsidInfoListusing inet::Wifi::SsidInfoList = var::Vector<SsidInfo>
Type: var::Vector< SsidInfo >
Static Functions
#
api()inline
static WifiApi & inet::Wifi::api ()
Type: WifiApi &
#
security_from_string(const var::StringView name)inline
static Security inet::Wifi::security_from_string (const var::StringView name)
Type: Security
Parameters:
- const var::StringView
name
#
to_cstring(Security value)inline
static const char * inet::Wifi::to_cstring (Security value)
Type: const char *
Parameters:
- Security
value
Functions
#
Wifi()inet::Wifi::Wifi ()
#
~Wifi()inline
inet::Wifi::~Wifi ()
#
connect(const SsidInfo &ssid_info, const AuthInfo &auth, const chrono::MicroTime &timeout=10_seconds)IpInfo inet::Wifi::connect (const SsidInfo &ssid_info, const AuthInfo &auth, const chrono::MicroTime &timeout=10_seconds)
Type: IpInfo
Parameters:
- const SsidInfo &
ssid_info
- const AuthInfo &
auth
- const chrono::MicroTime &
timeout
#
disconnect()inline
Wifi & inet::Wifi::disconnect ()
Type: Wifi &
#
get_factory_mac_address(u8 mac_address[6])const Wifi & inet::Wifi::get_factory_mac_address (u8 mac_address[6])
Type: const Wifi &
Parameters:
u8
mac_address
#
get_info() constinline
Info inet::Wifi::get_info () const
Type: Info
#
get_mac_address(u8 mac_address[6])const Wifi & inet::Wifi::get_mac_address (u8 mac_address[6])
Type: const Wifi &
Parameters:
u8
mac_address
#
get_ssid_info_list()SsidInfoList inet::Wifi::get_ssid_info_list ()
Type: SsidInfoList
#
is_scan_busy() constinline
bool inet::Wifi::is_scan_busy () const
Type: bool
#
scan(const ScanAttributes &attributes=ScanAttributes::get_default(), const chrono::MicroTime &timeout=20_seconds)SsidInfoList inet::Wifi::scan (const ScanAttributes &attributes=ScanAttributes::get_default(), const chrono::MicroTime &timeout=20_seconds)
Type: SsidInfoList
Parameters:
- const ScanAttributes &
attributes
- const chrono::MicroTime &
timeout
#
set_device_name(void context, const char name)Wifi & inet::Wifi::set_device_name (void *context, const char *name)
Type: Wifi &
Parameters:
void *
context
const char *
name
#
set_ip_address(const wifi_ip_info_t *static_ip_address)Wifi & inet::Wifi::set_ip_address (const wifi_ip_info_t *static_ip_address)
Type: Wifi &
Parameters:
const wifi_ip_info_t *
static_ip_address
#
set_mac_address(u8 mac_address[6])Wifi & inet::Wifi::set_mac_address (u8 mac_address[6])
Type: Wifi &
Parameters:
u8
mac_address
#
set_mode()Wifi & inet::Wifi::set_mode ()
Type: Wifi &
#
set_sleep_mode(void *context)Wifi & inet::Wifi::set_sleep_mode (void *context)
Type: Wifi &
Parameters:
void *
context
#
set_tx_power(void *context, u8 power_level)Wifi & inet::Wifi::set_tx_power (void *context, u8 power_level)
Type: Wifi &
Parameters:
void *
context
u8
power_level
#
sleep(void *context, u32 sleep_time_ms)Wifi & inet::Wifi::sleep (void *context, u32 sleep_time_ms)
Type: Wifi &
Parameters:
void *
context
u32
sleep_time_ms
#
start_connect(const SsidInfo &ssid_info, const AuthInfo &auth)Wifi & inet::Wifi::start_connect (const SsidInfo &ssid_info, const AuthInfo &auth)
Type: Wifi &
Parameters:
#
start_scan(const ScanAttributes &attributes)inline
Wifi & inet::Wifi::start_scan (const ScanAttributes &attributes)
Type: Wifi &
Parameters:
- const ScanAttributes &
attributes