Browse Source

Remove wifi gain option (#204)

fastled
Xose Pérez 7 years ago
parent
commit
35e1033c76
6 changed files with 3539 additions and 3563 deletions
  1. +0
    -3
      code/espurna/config/general.h
  2. BIN
      code/espurna/data/index.html.gz
  3. +3539
    -3544
      code/espurna/static/index.html.gz.h
  4. +0
    -1
      code/espurna/web.ino
  5. +0
    -2
      code/espurna/wifi.ino
  6. +0
    -13
      code/html/index.html

+ 0
- 3
code/espurna/config/general.h View File

@ -262,9 +262,6 @@ PROGMEM const char* const custom_reset_string[] = {
#define WIFI_RECONNECT_INTERVAL 120000 // If could not connect to WIFI, retry after this time in ms
#define WIFI_MAX_NETWORKS 5 // Max number of WIFI connection configurations
#define WIFI_AP_MODE AP_MODE_ALONE
#ifndef WIFI_GAIN
#define WIFI_GAIN 0 // WiFi gain in dBm from 0 (normal) to 20.5 (max power and consumption)
#endif
// Optional hardcoded configuration (up to 2 different networks)
//#define WIFI1_SSID "..."


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


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


+ 0
- 1
code/espurna/web.ino View File

@ -631,7 +631,6 @@ void _wsStart(uint32_t client_id) {
}
#endif
root["wifiGain"] = getSetting("wifiGain", WIFI_GAIN).toFloat();
root["maxNetworks"] = WIFI_MAX_NETWORKS;
JsonArray& wifi = root.createNestedArray("wifi");
for (byte i=0; i<WIFI_MAX_NETWORKS; i++) {


+ 0
- 2
code/espurna/wifi.ino View File

@ -50,8 +50,6 @@ bool createAP() {
void wifiConfigure() {
WiFi.setOutputPower(getSetting("wifiGain", WIFI_GAIN).toFloat());
jw.setHostname(getSetting("hostname").c_str());
jw.setSoftAP(getSetting("hostname").c_str(), getSetting("adminPass", ADMIN_PASS).c_str());
jw.setConnectTimeout(WIFI_CONNECT_TIMEOUT);


+ 0
- 13
code/html/index.html View File

@ -397,19 +397,6 @@
<div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="alexaEnabled" tabindex="11" /></div>
</div>
<div class="pure-g">
<label class="pure-u-1 pure-u-md-1-4" for="wifiGain">WiFi gain</label>
<div class="pure-u-1 pure-u-md-3-4">
<select name="wifiGain" class="pure-u-3-4" tabindex="3">
<option value="0">Normal</a>
<option value="10">High</a>
<option value="20.5">Highest</a>
</select>
</div>
<div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
<div class="pure-u-1 pure-u-md-3-4 hint">More gain means better range but also more power consumption. Might not work equally on all devices.</div>
</div>
<div class="pure-g module module-ha">
<label class="pure-u-1 pure-u-md-1-4" for="haPrefix">Home Assistant Prefix</label>
<input class="pure-u-1 pure-u-md-1-2" name="haPrefix" type="text" tabindex="31" />


Loading…
Cancel
Save