Skip to content

ESP V2.5.2 AP WiFi is not seen on just one mobile (V2.5.0 is OK) #6249

Closed
@caipifrosch

Description

@caipifrosch

Platform

  • Hardware: [ESP-12]
  • Core Version: [V2.5.2 Release]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Generic ESP8266 Module]
  • Flash Mode: [qio]
  • Flash Size: [4MB]
  • lwip Variant: [v2 Higher Bandwidth]
  • Reset Method: [nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [OTA|SERIAL]
  • Upload Speed: [other] (serial upload only)

Problem Description

WiFi Setup of XIAOMI Mi A2 (Android one) does not find the ESP AP with Versions 2.5.2 and 2.5.1, while other mobile, PC or iPad devices will show ESP SSID. Same applies to latest Git (03.07.2019).

Reverting back to V2.5.0 always fixes this issue.

Tested back and forth multiple times:
ESP is not seen by Mi A2 mobile on any Version above V2.5.0.

Thanks a lot for your help/advice in advance.

Sketch / AP Setup

void setupAP(void) {

  Serial.print("WLAN: Starting Access Point... SSID: ");
  Serial.println(network.apSSID);

  WiFi.persistent(false);

  WiFi.disconnect();
  WiFi.softAPdisconnect(true);
  WiFi.hostname(network.apSSID);

  wifi_set_opmode(STATIONAP_MODE);

  WiFi.softAPConfig((IPAddress)network.apIP, (IPAddress)network.apIP, (IPAddress)network.wlanNM);

  // start AP
  Serial.print("WLAN: Starting SoftAP on Channel ");
  Serial.print(String(network.apCH,DEC));

  if (!WiFi.softAP(network.apSSID, network.apPass, network.apCH, 0, MAX_AP_CONS))
  {

    // AP setup failed
    Serial.println("... failed!");

    ESP.restart();

  }
  else {

    // AP setup and running...
    Serial.println(" ... started.");

    launchWeb(1);

  }

}

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