Browse Source

wifi: update to justwifi development version (#2347)

- support 32 byte hostname / ssid
- support 64 byte passphrase
- slightly reduce amount of memory allocations
- tweak initialization paths to call persistent(false) as early as possible
mcspr-patch-1
Max Prokhorov 4 years ago
committed by GitHub
parent
commit
d63228ef50
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 20264 additions and 20262 deletions
  1. BIN
      code/espurna/data/index.all.html.gz
  2. BIN
      code/espurna/data/index.curtain.html.gz
  3. BIN
      code/espurna/data/index.light.html.gz
  4. BIN
      code/espurna/data/index.lightfox.html.gz
  5. BIN
      code/espurna/data/index.rfbridge.html.gz
  6. BIN
      code/espurna/data/index.rfm69.html.gz
  7. BIN
      code/espurna/data/index.sensor.html.gz
  8. BIN
      code/espurna/data/index.small.html.gz
  9. BIN
      code/espurna/data/index.thermostat.html.gz
  10. +2572
    -2572
      code/espurna/static/index.all.html.gz.h
  11. +1966
    -1966
      code/espurna/static/index.curtain.html.gz.h
  12. +2338
    -2338
      code/espurna/static/index.light.html.gz.h
  13. +2176
    -2176
      code/espurna/static/index.lightfox.html.gz.h
  14. +1970
    -1970
      code/espurna/static/index.rfbridge.html.gz.h
  15. +3348
    -3348
      code/espurna/static/index.rfm69.html.gz.h
  16. +2015
    -2014
      code/espurna/static/index.sensor.html.gz.h
  17. +1918
    -1918
      code/espurna/static/index.small.html.gz.h
  18. +1956
    -1956
      code/espurna/static/index.thermostat.html.gz.h
  19. +1
    -0
      code/espurna/wifi.cpp
  20. +2
    -2
      code/html/custom.js
  21. +1
    -1
      code/html/index.html
  22. +1
    -1
      code/platformio.ini

BIN
code/espurna/data/index.all.html.gz View File


BIN
code/espurna/data/index.curtain.html.gz View File


BIN
code/espurna/data/index.light.html.gz View File


BIN
code/espurna/data/index.lightfox.html.gz View File


BIN
code/espurna/data/index.rfbridge.html.gz View File


BIN
code/espurna/data/index.rfm69.html.gz View File


BIN
code/espurna/data/index.sensor.html.gz View File


BIN
code/espurna/data/index.small.html.gz View File


BIN
code/espurna/data/index.thermostat.html.gz View File


+ 2572
- 2572
code/espurna/static/index.all.html.gz.h
File diff suppressed because it is too large
View File


+ 1966
- 1966
code/espurna/static/index.curtain.html.gz.h
File diff suppressed because it is too large
View File


+ 2338
- 2338
code/espurna/static/index.light.html.gz.h
File diff suppressed because it is too large
View File


+ 2176
- 2176
code/espurna/static/index.lightfox.html.gz.h
File diff suppressed because it is too large
View File


+ 1970
- 1970
code/espurna/static/index.rfbridge.html.gz.h
File diff suppressed because it is too large
View File


+ 3348
- 3348
code/espurna/static/index.rfm69.html.gz.h
File diff suppressed because it is too large
View File


+ 2015
- 2014
code/espurna/static/index.sensor.html.gz.h
File diff suppressed because it is too large
View File


+ 1918
- 1918
code/espurna/static/index.small.html.gz.h
File diff suppressed because it is too large
View File


+ 1956
- 1956
code/espurna/static/index.thermostat.html.gz.h
File diff suppressed because it is too large
View File


+ 1
- 0
code/espurna/wifi.cpp View File

@ -757,6 +757,7 @@ void wifiSetup() {
// Backwards compat, we need to specify namespace
moveSetting("apmode", "wifiApMode");
jw.begin();
_wifiConfigure();
// Note that maximum amount of stations is set by `WiFi.softAP(...)` call, but justwifi handles that.


+ 2
- 2
code/html/custom.js View File

@ -164,9 +164,9 @@ function validateFormHostname(form) {
// No other symbols, punctuation characters, or blank spaces are permitted.
// Negative lookbehind does not work in Javascript
// var re_hostname = new RegExp('^(?!-)[A-Za-z0-9-]{1,31}(?<!-)$');
// var re_hostname = new RegExp('^(?!-)[A-Za-z0-9-]{1,32}(?<!-)$');
var re_hostname = new RegExp('^(?!-)[A-Za-z0-9-]{0,30}[A-Za-z0-9]$');
var re_hostname = new RegExp('^(?!-)[A-Za-z0-9-]{0,31}[A-Za-z0-9]$');
var hostname = $("input[name='hostname']", form);
if ("true" !== hostname.attr("hasChanged")) {


+ 1
- 1
code/html/index.html View File

@ -363,7 +363,7 @@
<div class="pure-g">
<label class="pure-u-1 pure-u-lg-1-4">Hostname</label>
<input name="hostname" class="pure-u-1 pure-u-lg-1-4" maxlength="31" type="text" action="reboot" tabindex="1" />
<input name="hostname" class="pure-u-1 pure-u-lg-1-4" maxlength="32" type="text" action="reboot" tabindex="1" />
<div class="pure-u-0 pure-u-lg-1-2"></div>
<div class="pure-u-0 pure-u-lg-1-4"></div>
<div class="pure-u-1 pure-u-lg-3-4 hint">


+ 1
- 1
code/platformio.ini View File

@ -135,7 +135,7 @@ lib_deps =
https://bitbucket.org/xoseperez/fauxmoesp.git#3.1.0
https://github.com/xoseperez/hlw8012.git#1.1.0
IRremoteESP8266@2.7.4
https://github.com/xoseperez/justwifi.git#2.0.2
https://github.com/mcspr/justwifi.git#2cb9e769
https://github.com/madpilot/mDNSResolver#4cfcda1
https://github.com/xoseperez/my92xx#3.0.1
https://github.com/256dpi/arduino-mqtt#196556b6


Loading…
Cancel
Save