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
1772b419ee
but it doesnt require a cert
2018-09-22 12:04:37 -07:00
Morgan Allen
0939d7c015
forgot component.mk
2018-09-22 12:03:53 -07:00
Morgan Allen
e36daf874b
put user code in charge of restarting connect process
2018-09-21 23:23:11 -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
920e016fdc
try connecting again after some time
2018-09-21 22:35:54 -07:00
Morgan Allen
f58c4d63c4
expose _connect for user use
2018-09-21 22:34:24 -07:00
Morgan Allen
d99d5f11ad
on no, weve gone idle
2018-09-21 22:34:04 -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
de8f1a4e4f
what this thing all about?
2018-09-21 22:03:07 -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
3e25c915fa
add more test ap options
2018-09-21 21:30:58 -07:00
Morgan Allen
fb49e95064
no longer reset from the loop, just announce the connection and sleep a while
2018-09-21 21:30:30 -07:00
Morgan Allen
657a5e44b9
properly start wifi manager
2018-09-21 21:29:41 -07:00
Morgan Allen
4747daef72
basic hashed out README
2018-09-21 19:14:25 -07:00
Morgan Allen
b2a6792610
use defines for event states
...
this was causing some wonky linking issue I could not figure
esp32-on-air/build/esp32-wifi-manager/libesp32-wifi-manager.a(esp32-wifi-manager.o):(.rodata.AP_AVAILABLE+0x0):
multiple definition of `AP_AVAILABLE'
esp32-on-air/build/main/libmain.a(main.o):(.rodata.AP_AVAILABLE+0x0):
first defined here
esp32-on-air/build/esp32-wifi-manager/libesp32-wifi-manager.a(esp32-wifi-manager.o):(.rodata.WIFI_CONNECTING+0x0):
multiple definition of `WIFI_CONNECTING'
esp32-on-air/build/main/libmain.a(main.o):(.rodata.WIFI_CONNECTING+0x0):
first defined here
esp32-on-air/build/esp32-wifi-manager/libesp32-wifi-manager.a(esp32-wifi-manager.o):(.rodata.WIFI_CONNECTED+0x0):
multiple definition of `WIFI_CONNECTED'
esp32-on-air/build/main/libmain.a(main.o):(.rodata.WIFI_CONNECTED+0x0):
first defined here
2018-09-03 20:31:32 -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
a1d175fbce
oh yeah, you\'ll need that
2018-09-03 19:46:36 -07:00
Morgan Allen
77a93484de
not using for now
2018-09-03 15:36:09 -07:00
Morgan Allen
1641bd2be4
sync up test project
2018-09-03 15:35:55 -07:00
Morgan Allen
7ae44b0083
mostly all the things
2018-09-03 15:35:15 -07:00
Morgan Allen
e4e171b314
switched to nvs no longer need memory address
2018-09-03 15:34:16 -07:00
Morgan Allen
7d0963e3f5
use spi_flash_read to load stored config
2018-09-02 17:27:51 -07:00
Morgan Allen
db575da69a
include test proejct
2018-09-02 17:14:26 -07:00
Morgan Allen
6fbe6e4ac4
init skeleton commit
2018-09-02 17:10:41 -07:00