Skip to content

[BUG] AP Mode fails to read SSID/Password from config file (Error: "SSID can't be empty") #12

@sprensis

Description

@sprensis

Description

I am unable to access the Web UI because the board fails to initialize the Access Point (AP) with the configured SSID and password, resulting in the error message "Error: SSID can't be empty" in the Serial Monitor

The board reports that the AP is successfully launched after the error, but the network does not appear with the defined SSID (BW16-WebUI).

Reproduction Steps

  1. Hardware: Ai-Thinker BW16-Kit (RTL8720DN).
  2. Software: Cloned the main branch of this repository.
  3. Configuration: Verified the AP credentials are correctly set in the configuration file:
    • File: WEB_CONFIG_H
    • Content:
      #define WEB_UI_SSID "BW16-WebUI"
      #define WEB_UI_PASSWORD "1234567890"
  4. Upload: Compiled and uploaded the sketch using Arduino IDE (with Realtek Ameba Board v3.17) by manually entering Download Mode (BURN + RST).
  5. Result: The Serial Monitor shows the error below, and the configured network (BW16-WebUI) does not appear in my Wi-Fi scan list.

Expected Behavior

The board should successfully create a Wi-Fi Access Point with the SSID "BW16-WebUI" and allow connection using the password "1234567890".

Actual Behavior (Serial Output)

The following sequence of messages is repeatedly displayed in the Serial Monitor:

执行初始WiFi扫描...
#calibration_ok:[2:19:11]

=== BW16 WiFi Deauther 启动 ===
初始化LED引脚...
通电蓝灯常亮 - 系统就绪
启动AP模式...
interface 0 is initialized

interface 1 is initialized

Initializing WIFI ...

WIFI initialized

Error: SSID can't be empty

AP模式启动成功
执行初始WiFi扫描...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions