summaryrefslogtreecommitdiffstats
path: root/polycom_xmit/wifi.c
blob: 0b2c7256e4777dc9c6ae4c8492dccc3a54e252f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "project.h"
void ICACHE_FLASH_ATTR
wifi_init (void)
{
  struct station_config config = { 0 };

  os_strcpy (config.ssid, "haddock-bg");
  os_strcpy (config.password, "fishsoup");

  wifi_station_set_config_current (&config);

  wifi_set_opmode_current (STATION_MODE);
  wifi_set_phy_mode (PHY_MODE_11N);

  wifi_station_set_reconnect_policy (true);

  wifi_station_set_auto_connect (true);

  //wifi_station_connect();
  //wifi_station_dhcpc_start ();
}