Skip to content

TAG V3.1 - esp_wifi_scan_start() in STA mode (IDFGH-619) #3044

@caipiblack

Description

@caipiblack

Environment

  • Development Kit: self made
  • Module or chip used: ESP32-WROOM-32
  • IDF version: v3.1 (tag)
  • Build System: CMake
  • Compiler version: xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-73-ge28a011) 5.2.0
  • Operating System: Linux
  • Power Supply: external 5V

Problem Description

When we call esp_wifi_scan_start() in STA mode (connected to an acces point) we get this error:

W (167973) wifi: Now is connecting, user scan invalid now!

The result of esp_wifi_scan_start() is ESP_ERR_WIFI_TIMEOUT

The WiFi mode is: WIFI_MODE_STA

Expected Behaviour

The wifi scan must be started

Actual Behaviour

The wifi scan is not started and it returns the errors on the description

Questions

Is it possible to use this functions in STA mode (connected to an AP) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions