Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent = false #275

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open

Persistent = false #275

wants to merge 40 commits into from

Commits on Mar 14, 2016

  1. Added ability to call StartConfigPortal() so that access point name c…

    …an be unique and automatically generated from the ESP8266 Chip Id.
    
    Tries to reconnect in station mode with  whatever credentials have been saved when StartConfigPortal times out otherwise device will be without WiFi after exiting StartConfigPortal.
    kentaylor committed Mar 14, 2016
    Configuration menu
    Copy the full SHA
    8f5171c View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2016

  1. There has been an assumption that device has to be told to connect bu…

    …t Wifi already does it's best to connect in the background. Calling WiFi.begin while device is already trying to connect will occasionally cause WiFi to lock up. Only call WiFi.begin after calling WiFi.disconnect. These changes are aimed at stopping WiFi.begin from being called at the wrong time.
    
    The concept of autoconnect is also deprecated because it is trying to do what the device is already doing.  Calling this method will now block until WiFi connects. It has been changed to wait for 10 seconds then go into setup mode if connection fails. Sketch can avoid blocking call then use (WiFi.status()==WL_CONNECTED) test to see if connected yet.
    
    Removed - Tries to reconnect in station mode with  whatever credentials have been saved when StartConfigPortal times out otherwise device will be without WiFi after exiting StartConfigPortal. - because it was wrong.
    kentaylor committed Mar 25, 2016
    Configuration menu
    Copy the full SHA
    3bb5fad View commit details
    Browse the repository at this point in the history
  2. Configure on switch example. If there is no SSID in memory set up a c…

    …onfiguration portal otherwise connect with existing SSID data. If a button is pushed go into configuration portal mode. Stay in configuration portal mode until user closes configuration portal or 3 minutes have passed.
    kentaylor committed Mar 25, 2016
    Configuration menu
    Copy the full SHA
    a2c9e20 View commit details
    Browse the repository at this point in the history
  3. Changes aimed at supporting the config portal remaining open until a …

    …specified time has passed or user requests portal to be closed. If a successful connection is made to a network the access portal is available on the network ip address and on it's own network at two addresses. These addresses are 192.168.1.4 and the address on the other network.
    kentaylor committed Mar 25, 2016
    Configuration menu
    Copy the full SHA
    20c9f95 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2016

  1. Change example to use ESP8266 led rather than NodeMCU led as some boa…

    …rds do not have this led.
    
    Force to station mode on example app because if device was switched off while in access point mode it will start up next time in access point mode.
    Print ip number correctly in close page
    Set example app to keep access point open forever.
    Turn off automatic scans for wifi.
    Add current network and IP details to root page.
    Removed reset button from root page as I can't think of a scenario where this is useful but url for reset functionality still works.
    Make device reset in example app after returning from portal because web server can only be started once. Not sure why this is and it needs further investigation.
    After setting credentials redirect to root page rather than serve a page.
    Set header responses to not cache in browser for all pages.
    Removed generate_204 handler. See discussion in code as to why.
    kentaylor committed Mar 28, 2016
    Configuration menu
    Copy the full SHA
    a36362d View commit details
    Browse the repository at this point in the history
  2. Access point becomes flaky if set in dual mode and not sucessfully co…

    …nnected to network so change to access point mode only when there is no network connection.
    
    Provide some extra information on the root page.
    Disabled page caching in the browser.
    kentaylor committed Mar 28, 2016
    Configuration menu
    Copy the full SHA
    f374142 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d60dc79 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2016

  1. Merge tzapu's changes

    # Conflicts:
    #	WiFiManager.cpp
    kentaylor committed Apr 2, 2016
    Configuration menu
    Copy the full SHA
    2d8f0fa View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2016

  1. Configuration menu
    Copy the full SHA
    af9d82c View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2016

  1. Fixed json formatting error in state response - removed extra braces.

    Output from url /state now parses OK at test site http://json.parser.online.fr/
    kentaylor committed Apr 9, 2016
    Configuration menu
    Copy the full SHA
    6108e80 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2016

  1. Changed true and false in json formatted response to /state http requ…

    …est to be of type boolean from previous type string.
    
    Moved scan for WiFi networks to a seperate function. Uses the third option from https://www.eskimo.com/~scs/cclass/int/sx5.html to return an array which is messy as it requires the use of pointers, malloc and free. The function returns the number of WiFi networks it found and changes a pointer to point to an array of indexes that is used to access the WiFi networks that were found array in signal strength order.
    
    Changed the ConfigOnSwitch example to use waitForConnectedResult method rather than poll in a loop for the WiFi status when attempting to connect to WiFi.
    kentaylor committed Apr 11, 2016
    Configuration menu
    Copy the full SHA
    2b6f107 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2016

  1. Added /scan URL that returns the results of a WiFi network scan in js…

    …on format.
    
    The purpose of returning data in json format is to make it easy for apps to programatically configure the WiFi access point name and credentials. I expect users will find apps a convenient alternative to a browser to configure the device because usability testing has shown that people sometimes get confused by having to switch back and forward between WiFi networks .
    
    The URLs that return json data are now /state and /scan .
    kentaylor committed Apr 12, 2016
    Configuration menu
    Copy the full SHA
    0a318e1 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2016

  1. Configuration menu
    Copy the full SHA
    3a6116a View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2016

  1. Modified Readme to describe and justify the changes made.

    Removed examples that were no longer meaningful now that the autoconnect function has been deprecated.
    kentaylor committed Apr 22, 2016
    Configuration menu
    Copy the full SHA
    f0958f9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a490bc1 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2016

  1. Added message that web server can take a minute to restart after conn…

    …ecting to a network.
    
    Changed pin assignments to be numerical rather than by name as some ESP8266 devices use different pin mappings.
    Small modifications to librarly explanation and justification.
    kentaylor committed Apr 24, 2016
    Configuration menu
    Copy the full SHA
    9904f2c View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2016

  1. Changes:

    - Configuration portal got new look and feel
    - Added a very small CSS framework based on mincss
    - Added the possibility of using labels. A labels will receive the text of the corresponding placeholder
    - Added option for label placement. 0 - label not displayed, 1 - label displayed before field (default), 2 - label displayed after field. Latter is useful for checkboxes
    - Scan link was moved to the top
    - All HTML <dl> description list elements were replaced by tables
    - Removed <br> before each form parameter, CSS will take care of the spacing and custom HTML injection will be more useful
    - Renamed Configure WiFi option to Configuration as WiFi is not the only option that can be configured
    - Renamed Info option to WiFi Information as the original text was too short and looked strange
    - Reanmed Close configuration portal option as it was too long and was displayed in two lines on smaller devices
    battika committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    5274fd2 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2016

  1. Configuration menu
    Copy the full SHA
    32a6137 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2016

  1. Configuration menu
    Copy the full SHA
    d08daf2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba9e5ee View commit details
    Browse the repository at this point in the history
  3. Removed ' in favour of \"

    battika committed May 1, 2016
    Configuration menu
    Copy the full SHA
    e659d59 View commit details
    Browse the repository at this point in the history
  4. Added example with switch to invoke WiFi manager and custom parameter…

    …s saved to the flash memory
    battika committed May 1, 2016
    Configuration menu
    Copy the full SHA
    991970a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    10d62a9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c1101fc View commit details
    Browse the repository at this point in the history
  7. Try make Travis not to fail

    battika committed May 1, 2016
    Configuration menu
    Copy the full SHA
    30daba6 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2016

  1. 1. Specifying a time out on the Configuration Portal was not previous…

    …ly working correctly. This did not affect the ConfigOnSwitch example.
    
    2. Provided ConfigOnStartup example as suggested by cjamin. This provides a ConfigPortal for the first minute after startup.
    3. Changed logic in ConfigOnSwitch example when there is no previously configured access point to match that in ConfigOnSwitchFS example.
    4. Fixed broken link in Readme.MD.
    kentaylor committed May 2, 2016
    Configuration menu
    Copy the full SHA
    70eeec4 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2016

  1. Renamed WiFi Information menu item, removed unneeded example files, m…

    …oved config file writing process
    battika committed May 5, 2016
    Configuration menu
    Copy the full SHA
    ab4eb79 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2016

  1. Configuration menu
    Copy the full SHA
    8b53883 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2016

  1. Added screenshots provided by Battika to readme.md.

    Added SSID and Station IP to Device Information web page at address /i
    kentaylor committed May 7, 2016
    Configuration menu
    Copy the full SHA
    0b2172e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d59f00b View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2016

  1. Several chages to Improve usability and implementability. Specifically:-

    1. Updated explanation on first page of repository to reflect many changes that have been made since the earlier version.
    2. Page requests to root redirect to a fixed url which also resolves to an information page on the internet.
    3. Changed password field to an ordinary input to make password visible while typing.
    4. Added link to associated Android app, connection status report and reference of available pages to information page.
    5. Corrected explanation in comments of why dual mode can become flaky.
    6. Removed all references to generate_204 which is no longer used.
    kentaylor committed Sep 29, 2016
    Configuration menu
    Copy the full SHA
    91d73c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    167afc0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aec9716 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2016

  1. Configuration menu
    Copy the full SHA
    a6982af View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2016

  1. Configuration menu
    Copy the full SHA
    d371e54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d735e5 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2016

  1. Merge pull request #3 from datacute/kentaylors

    Added an example of starting the configuration portal when a double reset is detected.
    kentaylor authored Oct 28, 2016
    Configuration menu
    Copy the full SHA
    2fcd4ed View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2016

  1. Documentation changes associated with inclusion of ConfigOnDoubleRese…

    …t example. Also web wifisave page changed to show actual access point name rather than a constructed name that may be wrong.
    kentaylor committed Oct 30, 2016
    Configuration menu
    Copy the full SHA
    a215dfa View commit details
    Browse the repository at this point in the history
  2. Wifi scan now done in the WiFiManager constructor so that it is prior…

    … to creating a WiFi network. This removes the risk of the browsing device that is using the html interface changing WiFi networks during a scan but means WiFiManager must be restarted to update the scan results at /wifi.
    
    The /scan URL still does a fresh scan on each request  and these scan results are exclusive for the JSON interface.
    kentaylor committed Oct 30, 2016
    Configuration menu
    Copy the full SHA
    ad3daec View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2016

  1. Added reference to Configurator service in documentation as a better …

    …way to load parameters other than WiFi parameters.
    
    Removed unused WlFiManager status conditions.
    Fixed broken hyperlinks.
    kentaylor committed Nov 1, 2016
    Configuration menu
    Copy the full SHA
    ec1a4a4 View commit details
    Browse the repository at this point in the history