ESPConnect | Easy WiFi Manager with Captive Portal

 by   ayushsharma82 C Version: v1.0.5 License: GPL-3.0

kandi X-RAY | ESPConnect Summary

kandi X-RAY | ESPConnect Summary

ESPConnect is a C library typically used in Internet of Things (IoT), Arduino applications. ESPConnect has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

ESPConnect is a simplistic and easy approch to having a WiFi manager on your ESP MCUs. It is a lightweight library which let's you configure WiFi networks without any fuss. ESPConnect works with both ESP8266 & ESP32.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ESPConnect has a low active ecosystem.
              It has 66 star(s) with 22 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 5 have been closed. On average issues are closed in 10 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ESPConnect is v1.0.5

            kandi-Quality Quality

              ESPConnect has 0 bugs and 0 code smells.

            kandi-Security Security

              ESPConnect has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ESPConnect code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ESPConnect is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              ESPConnect releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.
              It has 13 lines of code, 0 functions and 6 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ESPConnect
            Get all kandi verified functions for this library.

            ESPConnect Key Features

            No Key Features are available at this moment for ESPConnect.

            ESPConnect Examples and Code Snippets

            No Code Snippets are available at this moment for ESPConnect.

            Community Discussions

            Trending Discussions on ESPConnect

            QUESTION

            Can't get ttk.Progressbar to start correctly
            Asked 2019-Feb-28 at 08:52

            I am not able to get the ttk.Progressbar widget to work. May I know what is the issue and how I can fix it?

            I know the Progressbar widget is functional; when I comment out self.sp_pbar.stop() the progressbar runs but this happens after time.sleep(5) completes which is not the desired behavior.

            ...

            ANSWER

            Answered 2019-Jan-30 at 14:06

            This is what you currently have in your code:

            you set self.espconnecting = False

            you call _connect_esp()

            which calls _show_conn_progress()

            which sets self.espconnecting = True and starts the progressbar self.sp_pbar.start()

            and then calls _update_conn_progress()

            which checks the value of self.espconnecting. If self.espconnecting is True(which it currently is) connection continues and progress bar keeps rolling as expected. If self.espconnecting is False progress bar is stopped self.sp_pbar.stop()

            Before .after() can make it's callback in 500ms, Control is passed back to _connect_esp which sets self.espconnecting = False. Then .after() calls _update_conn_progress() which is meant to keep the bar rolling,

            but(Here is your problem): what is the last value of self.espconnecting? =False hence, control branches to self.sp_pbar.stop(), which stops the progrss bar. This is why when you comment that line out your code works as expected, because even if control branches there, there will be nothing to prevent the progress bar from working.

            SOLUTION

            Do not set self.espconnecting = False in _connect_esp() because before .after() makes it's callback in 500ms, control would have been passed back to _connect_esp() which sets self.espconnecting = False which prevents your progress bar from working.

            This means you have to find another means to 'end the connection', once it gets started.

            N.B: I really don't see the need for time.sleep(5) in the code.

            Here is a possible way to go about the solving it:

            Source https://stackoverflow.com/questions/54438509

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ESPConnect

            Go to Sketch > Include Library > Library Manager > Search for "ESPConnect" > Install. For Windows: Download the Repository and extract the .zip in Documents>Arduino>Libraries>{Place "ESPConnect" folder Here}. For Linux: Download the Repository and extract the .zip in Sketchbook>Libraries>{Place "ESPConnect" folder Here}. Download the Repository, Go to Sketch>Include Library>Add .zip Library> Select the Downloaded .zip File.

            Support

            ESPConnect is a dead simple library which does your work in just 2 lines:. This function sets the SSID and password for your captive portal. The third parameter - timeout is optional which tells the library to keep the captive portal running for x - milliseconds. (Default - 3 minutes). Call this function after autoConnect to start the WiFi manager. This function will first try to connect to the previous configured WiFi credentials and if those are not found, it will spin up a captive portal. If the user doesn't sets the wifi credentials, the library will return to execute your rest of the code in the setup block. Please note: WiFi inactivity is managed by your code. If you think you need to reboot the MCU if there is no WiFi then please call the ESP.restart() function after checking ESPConnect.begin()'s response.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link