esp32-wifi | Rust ESP32 WiFi Library | Wifi library

 by   esp-rs Rust Version: Current License: Non-SPDX

kandi X-RAY | esp32-wifi Summary

kandi X-RAY | esp32-wifi Summary

esp32-wifi is a Rust library typically used in Networking, Wifi applications. esp32-wifi has no bugs, it has no vulnerabilities and it has low support. However esp32-wifi has a Non-SPDX License. You can download it from GitHub.

Rust ESP32 WiFi Library
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              esp32-wifi has a low active ecosystem.
              It has 48 star(s) with 6 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 3 have been closed. On average issues are closed in 16 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of esp32-wifi is current.

            kandi-Quality Quality

              esp32-wifi has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              esp32-wifi has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              esp32-wifi releases are not available. You will need to build from source code and install.

            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 esp32-wifi
            Get all kandi verified functions for this library.

            esp32-wifi Key Features

            No Key Features are available at this moment for esp32-wifi.

            esp32-wifi Examples and Code Snippets

            No Code Snippets are available at this moment for esp32-wifi.

            Community Discussions

            Trending Discussions on esp32-wifi

            QUESTION

            ESP32 Switch Between Promiscuous and STA Mode
            Asked 2020-May-25 at 04:23

            I'm working on a project based on the ESP32 platform. The aim is to count the number of MAC addresses in the area, and transmit this information over WiFi (using an http POST request).

            The first task is achieved by sniffing WIFI packets and collecting the contained addresses, following this example: https://blog.podkalicki.com/esp32-wifi-sniffer/ I believe that the code which "sniffs" the packets sets the ESP to run in promiscuous mode, and therefore I cannot connect to any AP anymore.

            I've tried several solutions, first starting with timer interrupts. However this approach always led to a Core Panic and reset of the chip. I also learnt I could use RTOS to run different tasks in parallel on the two cores of the CPU, but that didn't help to solve the problem.

            ...

            ANSWER

            Answered 2019-May-23 at 21:21

            You may have two tasks and two cores, but the ESP32 still has only one wifi chip. The way your code is written (at least, the code you shared), you'll be trying to connect to a wifi network at the same time as you're trying to run promiscuous mode. You can do only one of those things at a time.

            You'll need to stop promiscuous mode before you attempt to connect to an access point. Right now your code constantly attempt to connect to a wifi access point. Use a volatile variable to store the current mode - promiscuous or connected. Change it when you need to change states. Only attempt to connect to wifi when the variable says you want to be in connected mode.

            There may be some code you need to run to turn off promiscuous mode when you change states, before you connect to a wifi access point.

            If you're using wifi_sniffer_init() from the example you linked to, that code isn't meant to be run in an Arduino Core application. It does some network initialization that the Arduino Core will also do. It may not be safe to do that twice (it might work, it might not... but it's definitely not intended to be done that way).

            You're setting an interrupt handle chUpdate() which you didn't share. I'd bet that's the cause of your Core Panics. You can do very little in an interrupt handler. You definitely can't call most Arduino Core functions or most ESP-IDF functions. Most code isn't protected against interrupts, so the timer interrupt can occur while data structures are in an inconsistent state. Re-entering code can corrupt the data structures and cause the kind of crash you described. You're best off setting a volatile variable and waking up a task that will do the work you need done while not in the interrupt handler.

            Finally, you should call WiFi.mode(WIFI_STA); before you call WiFi.begin().

            For anyone confused about why you can't connect to a wifi network while in promiscuous mode - what ESP8266 and ESP32 call "promiscuous mode" is really "wifi monitor mode", which lets you monitor a wifi radio channel and see all wifi frames sent on it. They use the term "promiscuous mode" differently from the rest of the industry. Usually "promiscuous mode" means seeing all the packets being sent on the network (wifi or hardwired) that you're connected to.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install esp32-wifi

            You can download it from GitHub.
            Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.

            Support

            Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
            Find more information at:

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

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/esp-rs/esp32-wifi.git

          • CLI

            gh repo clone esp-rs/esp32-wifi

          • sshUrl

            git@github.com:esp-rs/esp32-wifi.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Wifi Libraries

            esp8266_deauther

            by SpacehuhnTech

            itlwm

            by OpenIntelWireless

            whereami

            by kootenpv

            create_ap

            by oblique

            Try Top Libraries by esp-rs

            std-training

            by esp-rsRust

            espressif-trainings

            by esp-rsRust

            esp-hal

            by esp-rsRust

            espflash

            by esp-rsRust

            esp-idf-hal

            by esp-rsRust