Skip to main content

inet::Wifi

Types

ScanRegion#

  • north_america
  • asia

Security#

  • invalid
  • open
  • wep
  • wpa_psk
  • x802_1x

SsidInfoList#

using 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:

to_cstring(Security value)#

inline

static const char * inet::Wifi::to_cstring (Security value)

Type: const char *

Parameters:

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:

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() const#

inline

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() const#

inline

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:

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: