diff options
author | root <root@lamia.panaceas.james.local> | 2015-07-21 08:33:53 +0100 |
---|---|---|
committer | root <root@lamia.panaceas.james.local> | 2015-07-21 08:33:53 +0100 |
commit | 0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39 (patch) | |
tree | 1a78099f912d094c7793e15ff9de75d1fc9d1253 /polycom_xmit/wifi.c | |
download | polycom-0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39.tar.gz polycom-0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39.tar.bz2 polycom-0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39.zip |
fish
Diffstat (limited to 'polycom_xmit/wifi.c')
-rw-r--r-- | polycom_xmit/wifi.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/polycom_xmit/wifi.c b/polycom_xmit/wifi.c new file mode 100644 index 0000000..c094355 --- /dev/null +++ b/polycom_xmit/wifi.c @@ -0,0 +1,18 @@ +#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_station_set_reconnect_policy (true); + + //wifi_station_connect(); + //wifi_station_dhcpc_start (); +} |