Skip to content

WiFi Service

suraj inamdar edited this page Mar 20, 2021 · 3 revisions

WiFi Service

This service is extended version of arduino wifi library. this service provides simplified api's to dynamically interact with wifi devices on practical field.

Configuration

Below two methods are used to configure wifi station and access point mode. We have to pass WiFi config table as input argument to these methods.

/**
 * configure and start wifi station functionality
 *
 * @param   wifi_config_table* _wifi_credentials
 * @param   uint8_t*|NULL  _wifi_credentials
 * @return  bool
 */
bool WiFiServiceProvider::configure_wifi_station( wifi_config_table* _wifi_credentials, uint8_t* mac );

/**
 * configure and start wifi access point functionality
 *
 * @param   wifi_config_table* _wifi_credentials
 * @return  bool
 */
bool WiFiServiceProvider::configure_wifi_access_point( wifi_config_table* _wifi_credentials ){

Reconfigure access point method is available if dynamic subnet is required/enabled. These process is used in auto network plan which acts for particular scenarios.

/**
 * reconfigure and start wifi access point functionality
 *
 */
void WiFiServiceProvider::reconfigure_wifi_access_point( void );

Handlers

Some handlers are enabled which periodically checks for wifi and internet connectivity so that user need not to worry about those connections in their application. They are automatically taken cared by background scheduler tasks.

The check periods can be configured from Common Configs. auto internet based connections will act only if ENABLE_INTERNET_BASED_CONNECTIONS option enabled. Its useful mostly in case where multiple routers/devices have access point with same ssid and password.

Clone this wiki locally