Commit graph

25 commits

Author SHA1 Message Date
Morgan Allen
cdaa2e9132 cleanup logging 2018-10-09 21:38:40 -07:00
Morgan Allen
ffb505e516 scan and connect logic 2018-10-09 21:23:21 -07:00
Morgan Allen
48d61d1807 split to scan and connect function 2018-10-09 21:23:08 -07:00
Morgan Allen
db94a61575 think this is the proper way to check.... 2018-10-09 21:21:40 -07:00
Morgan Allen
e31719fb1e move wifi_connect 2018-10-09 21:15:27 -07:00
Morgan Allen
3c778c4c9c dont incremental connect 2018-10-09 21:12:24 -07:00
Morgan Allen
cda32dd951 dont' start right away from STA_START, that'll load from nvs 2018-10-09 21:07:04 -07:00
Morgan 'ARR\!' Allen
1554ec8fa8 WIP scan 2018-09-22 18:33:57 -07:00
Morgan Allen
2dc81950d4 move CONNECTING bitsetting to _connect and reset _IDLE 2018-09-21 23:22:54 -07:00
Morgan Allen
7e6c9036b4 CALL esp_wifi_connect! You know.... TO CONNECT 2018-09-21 23:22:18 -07:00
Morgan Allen
c4913a64f7 move core wifi init stuff to _start 2018-09-21 23:21:02 -07:00
Morgan Allen
ad29c7077e unneeded 2018-09-21 23:20:11 -07:00
Morgan Allen
7cf5ef49a5 go IDLE after all APs have been attempted 2018-09-21 22:33:38 -07:00
Morgan Allen
349b0b4ff3 add connection delay between attempts 2018-09-21 22:12:17 -07:00
Morgan Allen
3051420dde important correction in README 2018-09-21 21:38:36 -07:00
Morgan Allen
eb59d7877a log reset. log AP index/count info in connect. 2018-09-21 21:35:34 -07:00
Morgan Allen
b7b28eadec reset .last at the start of main_loop
NOTE this maybe unnceccesary as this get initd to 0 in _add_ap if .last is -1 at that point
2018-09-21 21:34:52 -07:00
Morgan Allen
8ff9dcc43d move tcp and wifi loop inits to _start so _connect can handle only wifi config/connect 2018-09-21 21:33:36 -07:00
Morgan Allen
8655f986ac if last is not initd when an AP is added, set to 0 2018-09-21 21:32:23 -07:00
Morgan Allen
30a0877de7 hoist wifi_manager_connect so it can be called from the handler 2018-09-21 21:31:37 -07:00
Morgan Allen
d941435cb8 make state bits available 2018-09-03 19:53:12 -07:00
Morgan Allen
82f88e28cb return event group handle for wifi manager 2018-09-03 19:52:07 -07:00
Morgan Allen
7ae44b0083 mostly all the things 2018-09-03 15:35:15 -07:00
Morgan Allen
7d0963e3f5 use spi_flash_read to load stored config 2018-09-02 17:27:51 -07:00
Morgan Allen
6fbe6e4ac4 init skeleton commit 2018-09-02 17:10:41 -07:00