stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
126 stars 41 forks source link

Full AP mode #19

Closed cyclemat closed 6 years ago

cyclemat commented 6 years ago

Can you please add a full AP mode so you can use it in a caravan without wlan router ?

stefanbode commented 6 years ago

The ESP does not allow these kind of complex router functionality. You have to buy a small router e.g. from. Huawei

cyclemat commented 6 years ago

nope i mean only one Phone or Tablet can Controll The Device Without Wifi router on Client is possible or not ? i test to stop the reboot counter in AP mode and set it to the mainpage but it will not work !

stefanbode commented 6 years ago

You can change the behavior a bit when you change the timeout: support.ino

define WIFI_CONFIG_SEC 180 // seconds before restart (it is not the WIFI_MANAGER_SEC. I assume an error in default TASMOTA)

but because the underlying variable is a uint_8 the max value is 255. Therefore you have to trick again and avoid timer decrease when it has a specific value. e.g. 255. change in WifiCheck in support.ini either.

  //STB mod
      if (wifi_config_counter < 255) {
        wifi_config_counter--;
      }

@

cyclemat commented 6 years ago

Will test it

stefanbode commented 6 years ago

I‘m in discussion with the main branch of this project because in AP mode you only get a fraction of the Webserver UI . This makes no sense and I voted for a change having the same UI also in AP mode. I assume in intermediate I will change this on my side, because this is also asecurity issue