Commit Graph
408 Commits
Author SHA1 Message Date
Shawn A 00b14d5d1c Merge pull request #608 from ohadcn/patch-1
add CORS headers
2018-06-19 12:46:45 -05:00
Shawn A bff3d75f91 Merge pull request #584 from cmarrin/development
Changed setAPCallback and setSaveConfigCallback to take std::function…
2018-06-19 11:35:18 -05:00
Shawn A e3d91a03ff add esp32 persistent test support
persistent support was added via a PR, but not very well, it is buggy.
2018-06-18 15:28:32 -05:00
Shawn A b3e19041ff fix esp32 erase w persistent 2018-06-18 15:27:47 -05:00
Shawn A 10088c71f3 Move all wifi functions out of constructor
Cannot use wifi in constructor on esp32, as it is not available yet,
2018-06-18 15:27:18 -05:00
Shawn A 01a5646317 Merge branch 'development' of https://github.com/tzapu/WiFiManager into development 2018-06-18 11:40:05 -05:00
Shawn A 5066b86102 fix esp32 new bugs
esp32 only uses persistent on wifiLowLevelInit
        if(!persistent){
          esp_wifi_set_storage(WIFI_STORAGE_RAM);
        }
which only gets applied during certain functions, namely changing modes, or turning on wifi
2018-06-18 11:40:01 -05:00
ohad 128214a159 add CORS headers
this will allow external portal on the network to send credentials via browser.
2018-05-14 11:47:13 +03:00
tablatronix 718a8c8f4c fixing up setmenu docblocks 2018-04-26 20:46:00 -05:00
tablatronix 3c8af53440 comments, debugging 2018-04-25 11:12:12 -05:00
tablatronix 042640924f fix menu output
removed test menu output, removed ref , not sure why I put that there....
2018-04-19 19:01:50 -05:00
tablatronix f8ae461bfd fix savetimeout, too short, made optional 2018-04-09 19:48:31 -05:00
Chris Marrin 174bb615e6 Changed setAPCallback and setSaveConfigCallback to take std::function params
This allows Predicates and Lambdas to be passed. Still allows bare function pointers
so this patch is fully backward compatible. Tested on WiFiManager examples for
backward compatibility and on my own project (OfficeClock) for handling lambdas with
captured variables
2018-04-07 09:13:48 -07:00
Shawn A 82309e7a84 comment 2018-04-05 12:38:34 -05:00
Shawn A b682d8996b Merge branch 'development' of https://github.com/tzapu/WiFiManager into development 2018-04-05 12:34:56 -05:00
Shawn A c5b3637350 fixes #581
adds htmlentities to ssid outputs, limited replacements for now
2018-04-05 12:34:27 -05:00
Shawn A 5b3ac4236e fix some error logging 2018-04-05 12:29:42 -05:00
Shawn A 87c2eb42b6 fixup scnanetworks 2018-04-05 12:29:11 -05:00
tablatronix 7ec3b99020 clean up defines, removed stuff for memory 2018-03-31 12:42:06 -05:00
tablatronix 49104d4bbb adds chip revision efuse
not sure what use this is, as getChipRevision is usually the same anyway... shrug
2018-03-31 12:41:47 -05:00
Shawn A 41b29fa08c fix erroneous error debug 2018-03-28 09:38:07 -05:00
Shawn A ef70b49e98 fix nvs erase 2018-03-28 08:27:57 -05:00
Shawn A 4a6631511b fix handleerase add softapconfig catch fail 2018-03-28 08:23:04 -05:00
Shawn A a7b992450f Merge branch 'development' of https://github.com/tzapu/WiFiManager into development 2018-03-28 08:14:10 -05:00
Shawn A 10db048d61 getmodestr, handleerase(bool) 2018-03-28 08:13:53 -05:00
Christopher Liebman 7495fe2999 add setEnableConfigPortal(boolean enable) - if false dont open condig portal from autoConnect() 2018-03-24 18:29:30 -07:00
Shawn A c9a7112cbb fix parenths #573 2018-03-21 13:46:53 -05:00
Shawn A 32d6f11217 fixes #573 2018-03-21 13:30:53 -05:00
Shawn A c2cbe3015b refactor connectwifi, adds save timeout
wifi save now no longer uses settimeout timeout
2018-03-21 12:18:00 -05:00
Shawn A 851a38e7fa ugh 2018-03-20 13:27:50 -05:00
Shawn A 7f6bd107e6 fix debug levels 2018-03-20 13:22:43 -05:00
Shawn A d090dd3dd7 move menutokens 2018-03-20 13:14:50 -05:00
Shawn A 881f50fb7e fix compiler warnings 2018-03-20 12:35:01 -05:00
Shawn A 941865ec85 datatype fixes 2018-03-20 12:24:28 -05:00
Shawn A 88d2cfbff4 change varnames 2018-03-20 12:05:46 -05:00
Shawn A 7a57a1395d change setmenu to take vector or array of strnig tokens 2018-03-20 12:00:59 -05:00
Shawn A 8d4f745abf Merge branch 'development' of https://github.com/tzapu/WiFiManager into development 2018-03-19 12:47:57 -05:00
Shawn A e970686064 fix debug blank 2018-03-19 12:47:56 -05:00
tablatronix de85162267 add bug workaround for esp8266 softap 2018-03-17 10:11:03 -05:00
tablatronix 8ddc86f470 adds handleClose 2018-03-17 10:10:46 -05:00
Shawn A c9e82ae920 menuids as vector to deal with size
This kind of makes it a pain in the ass for users, not sure how to make this easier, I can take in an array of string ids, with a count arg, makes it easier, but then users can pass nonsense in, this way its enum ids, but damn it sure is convoluted. Welcome to ideas here...

```c++
  std::vector<WiFiManager::menu_page_t> menu = {wm.MENU_WIFI,wm.MENU_INFO,wm.MENU_PARAM,wm.MENU_CLOSE,wm.MENU_SEP,wm.MENU_ERASE,wm.MENU_EXIT};
  wm.setMenu(menu);
```
2018-03-16 15:55:53 -05:00
Shawn A 0741dbde2e debug remove 2018-03-16 14:19:16 -05:00
Shawn A e3b7dc2641 kludge setmenu with size so it works
Prboably going to add a vector for this, I do not want to add the overhead of std::array for something optional
2018-03-16 14:18:48 -05:00
Shawn A d07f73263a showinfoerase toggle 2018-03-16 14:17:58 -05:00
Shawn A f60a1d1b06 adds section hrs 2018-03-16 10:56:28 -05:00
Shawn A 424f48f0a8 add setShowDnsFields, adds edge case force hide ip fields 2018-03-16 10:56:12 -05:00
Shawn A 03a40915ee minor layout fix to config 2018-03-15 16:34:37 -05:00
Shawn A 8cbd0fa54e oops 2018-03-15 16:08:48 -05:00
Shawn A 655db109c1 comments 2018-03-15 15:51:47 -05:00
Shawn A 3cc1fabae7 fix tabs 2018-03-15 15:40:34 -05:00