Commit Graph
708 Commits
Author SHA1 Message Date
John 5ded0c9ef8 Use esp_wifi_set_country_code for ESP32 (#1470)
Replaces the use of esp_wifi_set_country() with esp_wifi_set_country_code() for ESP32 in order to both solve a crash under Arduino 2.x and remove the requirement to independently maintain country-specific channel settings
2022-08-09 10:44:06 -05:00
tablatronix f2ed2cb997 #1452
Possible fix
2022-07-13 22:14:58 -05:00
tablatronix b8205e71f3 add connection fixes for esp32 wifi not started yet 2022-06-30 13:40:38 -05:00
45gfg9 01bd8a398b Update WiFiManager.cpp (#1443)
Avoid constructing two String objects and adding them together. Just concatenate c-strings.
2022-06-28 13:14:06 -05:00
tablatronix 65fec94317 fix compiler warnings #1421 2022-06-26 23:22:10 -05:00
tablatronix 06c63720f6 #1421
remove temp
2022-06-26 16:39:33 -05:00
tablatronix 14aeb7575f Fix hostname for esp8266, needs to run after sta ughh 2022-06-24 23:44:03 -05:00
tablatronix afd328b3b2 Fix hostname #1403 2022-06-24 20:07:17 -05:00
tablatronix 3c2a05312b Merge branch 'master' of https://github.com/tzapu/WiFiManager 2022-06-20 22:14:12 -05:00
tablatronix b05a71b618 add comments for httpupdate callbacks 2022-06-20 22:13:30 -05:00
tablatronix a2c33744f6 rename wifi callbacks 2022-06-17 14:21:13 -05:00
tablatronix 317c026952 adds setPreSaveParamsCallback
//called when saving params before anything else happens
    void          setPreSaveParamsCallback( std::function<void()> func );
2022-06-17 14:07:11 -05:00
tablatronix b5671834e4 Moves presavecallback after static ip copy
#1429
2022-06-17 13:50:33 -05:00
tablatronix ca4b63220c remove double non blocking timeout handler 2022-06-17 11:36:21 -05:00
tablatronix 0ab747c62a going through todos 2022-06-17 11:13:39 -05:00
Perry e7bb9bc28e Change Stream to Print (#1307)
* Change Stream to Print 1/2

Update WifiManager to use base class Print instead of Stream.

I debug into a custom buffer, and that buffer implements Print, but not Stream.

* Change Stream to Print 2/2

Update WifiManager to use base class Print instead of Stream.

I debug into a custom buffer, and that buffer implements Print, but not Stream.
2022-05-08 09:30:33 -05:00
Michael Ammann 137410e184 Silence debug output (#1404)
This is probably a left over from debugging, can we remove or at least move it to a DEBUG_WM
2022-05-08 09:28:07 -05:00
Anthony Bryant 86e413dc2a Escape single quotes in htmlEntities() (#1413)
This should allow SSIDs that contain single quotes to populate data-ssid correctly. Without this patch, clicking on an SSID containing a single quote will either:
* Not use the whole SSID, in cases where there's text before the quote:
  `foo'bar` will appear in the SSID box as just `foo`
* Fall back to innerText, in cases where the quote is the first character in the SSID:
  `'); DROP TABLE WIFI; --` will appear in the SSID box as a version that has spaces converted to non-breaking spaces, causing the connection to eventually fail with WL_NO_SSID_AVAIL.
2022-05-08 09:27:17 -05:00
tablatronix 8d34744b29 fixes #1414
added a prefix to macros
2022-05-08 09:24:28 -05:00
tablatronix 483b83489b Fix #1383 2022-04-11 20:23:43 -05:00
tablatronix 7bffda3fe6 adds option to keep cfgp open on wifi save
// if true (default) then stop the config portal from autoConnect when wifi is saved
    void          setDisableConfigPortal(boolean enable);

Name will change
2022-04-08 20:44:08 -05:00
tablatronix 590e212ddb better fix $1386 2022-04-07 08:41:57 -05:00
tablatronix 1e628625aa fixes #1386
8
2022-04-07 08:37:43 -05:00
tablatronix c9393744a4 Merge branch 'master' of https://github.com/tzapu/WiFiManager 2022-03-29 14:46:49 -05:00
tablatronix 918e02ddfd add resetsetting delay, some complaints its not working shrug 2022-03-29 14:46:42 -05:00
tablatronix 6a85acdf85 add customMenuHTML 2022-03-29 13:34:58 -05:00
tablatronix 88b97c7caa #1383 fix 2022-03-29 13:31:41 -05:00
tablatronix 278c57b4ec fixes #1379 2022-03-28 08:23:16 -05:00
tablatronix da02b59a21 update template styles, add versionng to info 2022-03-25 14:40:52 -05:00
tablatronix eb5ba12df1 #1371 2022-03-13 21:36:25 -05:00
tablatronix 1f3b2e34ae typo 2022-03-13 21:26:13 -05:00
tablatronix 0994c4b3f8 regression, webserver callbacks before reset crashes
any webserver event handlers bound before the webserver new reset would cause memory access issues when triggered.

Should remove all events on reset or make memory safe, not sure if this is the correct way to be reseting the webserver, but there were issues with the ports not releasing etc.
2022-03-11 08:34:08 -06:00
tablatronix e830fa26e3 Adding a data attribute for ssid for input value
so it has nothing to do with the html , and can have different encoding, we could also just use IDs but scan cannot change, or use bssid

#1370
2022-03-11 00:04:21 -06:00
tablatronix acdad80a43 add callback debuggin 2022-03-10 22:34:03 -06:00
tablatronix 8f2c7ae870 remove test 2022-03-10 15:45:49 -06:00
tablatronix e6d21b8436 use macro for webserver routes fstring helper 2022-02-24 12:15:11 -06:00
tablatronix 0aecb22904 Fix old sdk esp8266 error w softapssid 2022-02-24 11:50:08 -06:00
tablatronix fd7f400b25 Revert "Both infoids and _ap_password are intialized by check time. (#1344)"
This reverts commit 9f6dcad791.
2022-02-24 11:44:45 -06:00
tablatronix d8c81ecca1 macro test 2022-02-24 11:43:42 -06:00
tablatronix 8ecf0575a1 remove old content length headers 2022-02-24 10:45:06 -06:00
tablatronix e9d0012cce abstract httpserver setup 2022-02-23 16:46:24 -06:00
tablatronix c987ee93c8 abstract httpsend 2022-02-23 16:36:52 -06:00
tablatronix 5acc7cc9aa css tweaks for inputs including select,checkbox
added vertical margins to inputs
2022-02-22 13:41:27 -06:00
tablatronix 36ed8c1af6 undo dashes, no clue
I will have to figure out why this causes ap not found on save, the string looks clean but there must be something going on, scan result not const?
2022-02-15 20:03:22 -06:00
tablatronix 4ab63aa1e9 remove esp32 softapssid, ver check not working correctly 2022-02-15 08:26:42 -06:00
tablatronix 755aca1643 #1348 just change _hostname to string ? 2022-02-04 22:04:10 -06:00
tablatronix fa76838ee5 fix esp32 softapssid 2022-02-04 17:54:50 -06:00
tablatronix 4d999b1456 fix #1353 #1354 2022-02-04 12:35:10 -06:00
tablatronix 4086e46f6c fix param out of scope check, avoids some exceptions 2022-01-24 14:13:03 -06:00
tablatronix cf9d85fd6d add dashes to htmlentities 2022-01-24 14:12:42 -06:00