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

Wifi SmartConfig - cannot discover ESP32S3 AP. #9463

Open
1 task done
kristsm opened this issue Apr 8, 2024 · 5 comments
Open
1 task done

Wifi SmartConfig - cannot discover ESP32S3 AP. #9463

kristsm opened this issue Apr 8, 2024 · 5 comments
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@kristsm
Copy link

kristsm commented Apr 8, 2024

Board

ESP32S3

Device Description

ESP32S3 Module 16MB flash with dual USB-C connectors (native USB and FTDI)

Hardware Configuration

ESP32S3 16MB FLASH

Version

latest master (checkout manually)

IDE Name

Plaformio Espressif 6.6.0

Operating System

MacOS 14.3.1 on M1

Flash frequency

n/a/

PSRAM enabled

yes

Upload speed

115200

Description

From mobile phone I cannot discover ESP32 Access Point, there is no new AP discovered when searching WIFI Networks. I tried to burn in another SoftAP and WIFI_AP_STA examples and they are working as expected ( discoverable from mobile phone WIFI network search). The only problem is with Smartconfig. Maybe I am doing something wrong? Should I push some button to start AP_STA?

Sketch

#include "WiFi.h"

void setup()
{
  Serial.begin(115200);

  // Init WiFi as Station, start SmartConfig
  WiFi.mode(WIFI_AP_STA);
  WiFi.beginSmartConfig();

  // Wait for SmartConfig packet from mobile
  Serial.println("Waiting for SmartConfig.");
  while (!WiFi.smartConfigDone())
  {
    delay(500);
    Serial.print(".");
  }

  Serial.println("");
  Serial.println("SmartConfig received.");

  // Wait for WiFi to connect to AP
  Serial.println("Waiting for WiFi");
  while (WiFi.status() != WL_CONNECTED)
  {
    delay(500);
    Serial.print(".");
  }

  Serial.println("WiFi Connected.");

  Serial.print("IP Address: ");
  Serial.println(WiFi.localIP());
}

void loop()
{
  // put your main code here, to run repeatedly:
}

Debug Message

n/a

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@kristsm kristsm added the Status: Awaiting triage Issue is waiting for triage label Apr 8, 2024
@kristsm
Copy link
Author

kristsm commented Apr 8, 2024

BTW, the serial prints dots (........) so it seems the code is working.

@Orel-A
Copy link

Orel-A commented Apr 9, 2024

Also happens on the original esp32, can't discover the created access point.

@kristsm
Copy link
Author

kristsm commented Apr 9, 2024

I discovered that actually I can connect esp32s3 to wifi with one of the smartconfig codes (with esptouch v2) running on laptop when the code is provided with router ssid/bssid/pswd. But still - the module's ssid is not visible on any of the phone/pc wifi networks. Somehow the smartconfig magically finds the module and connects it to the router :) Is it meant to be so?

@bearkillerPT
Copy link

I'm also facing this issue. I need the AP created by the ESP32 to be visible to phones to use the app that configures the wifi.

@kristsm
Copy link
Author

kristsm commented Apr 27, 2024

Actually it works, just the SSID is not visible. Smartconfig code run on Android can connect and configure esp32 with AP credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

3 participants