Commit Graph
251 Commits
Author SHA1 Message Date
Shawn A d140ccff84 adds setCountry, default US
accepts US JP CN, codes must be added to strings and WiFiSetCountry atm
2018-07-19 10:02:53 -05:00
tablatronix a39b96be9c disable autoreconect esp32 2018-07-18 16:25:53 -05:00
Christopher Liebman 5a06f29c5b In https://github.com/esp8266/Arduino/pull/4889 the core was modified to
disable WPS by default.  Its only enabled if NO_EXTRA_4K_HEAP is defined.
To enable you must re-run the board manager with --noextra4kheap.
This addes #ifdef NO_EXTRA_4K_HEAP arround WPS usage so it won't generate
compiler errors.
2018-07-07 06:26:36 -07:00
tablatronix 906a9d89cb advanced example testing 2018-06-29 16:52:20 -05:00
Shawn A 8d7da2fd8b FIx esp32 updates
Webserver now builtin to esp32 lib, esp32 persistent still not implemented properly, fixes erase again, fixes save again
2018-06-27 16:19:12 -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 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
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 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
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 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 c2cbe3015b refactor connectwifi, adds save timeout
wifi save now no longer uses settimeout timeout
2018-03-21 12:18:00 -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 57fc15a20a fix section compile error 2018-03-20 12:31:49 -05:00
Shawn A 941865ec85 datatype fixes 2018-03-20 12:24:28 -05:00
Shawn A 7a57a1395d change setmenu to take vector or array of strnig tokens 2018-03-20 12:00:59 -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 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 424f48f0a8 add setShowDnsFields, adds edge case force hide ip fields 2018-03-16 10:56:12 -05:00
Shawn A 655db109c1 comments 2018-03-15 15:51:47 -05:00
Shawn A 109dfa5c58 Merge pull request #561 from tzapu/pr560
Added Custom DNS, fix newlines
2018-03-15 15:41:07 -05:00
Shawn A 3cc1fabae7 fix tabs 2018-03-15 15:40:34 -05:00
Deb 81045e6433 Added Custom DNS, fix newlines 2018-03-15 15:29:34 -05:00
Shawn A 36840fc712 add WM_RTC def for rtc.h 2018-03-15 13:50:17 -05:00
Shawn A 278c320e22 added debug levels 2018-03-14 17:00:46 -05:00
Shawn A 19d6101a1b fix up connection result for ondemand portal 2018-03-14 10:45:50 -05:00
Shawn A 158dac1e68 fixes #551 2018-03-08 14:06:39 -06:00
Shawn A 0a1bd9f934 init params as null
I started gettting odd exceptions, so I thought this should be null and not on the stack or pointing to garbage. I might be totally in the wrong here.
2018-03-07 13:59:50 -06:00
Shawn A 6295d128aa adds opt erase flag 2018-03-05 16:35:26 -06:00
Shawn A 9f6cc23beb adds nvs erase
// #define WM_ERASE_NVS // esp32 erase() will erase NVS
2018-03-05 16:17:49 -06:00
Shawn A 3de9a34e3b Merge branch 'development' of https://github.com/tzapu/WiFiManager into development 2018-03-05 12:58:33 -06:00
Shawn A 4db3eca51e adds erase 2018-03-05 12:58:30 -06:00
tablatronix 53df6ac612 #546 fix?
Since I do not know how to fix the delegated constructors properly, this should fix the issue for now
2018-03-03 10:33:04 -06:00
Shawn A 92debb4bf8 comments 2018-02-24 10:45:58 -06:00
Shawn A ea9134afd2 fix webserver pointer 2018-02-24 09:13:20 -06:00
Shawn A bce3607504 add preloadscan enable 2018-02-24 08:54:40 -06:00
Shawn A d0ed01433d add wifiscan preloading with cache
This uses core scan object and assumes its lifetime, I am not sure what the scope is or how long it lives, will have to convert to local copy if its being lost, caching for 60s after startweb portal and 10s after root load, refresh bypasses cache
2018-02-24 08:40:01 -06:00
Shawn A 6749122eed change defs 2018-02-23 23:44:36 -06:00
Shawn A f210000c94 adds mdns support 2018-02-23 23:28:19 -06:00
Shawn A ff636abea8 fix menu and param save 2018-02-23 12:38:34 -06:00
Shawn A 6ba4a2523c fix up menus 2018-02-23 10:02:09 -06:00