Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No AP appears
#7
Title:  KC868-A6 SoftAP Web Server using Flowcode - Getting
Code:
ERR_CONNECTION_REFUSED
Body: Hello KinCony Team and Community,
I am working with the KC868-A6 board (ESP32 version) using Flowcode 11. My goal is to set up the board as a standalone Wi-Fi Access Point (SoftAP) to control the 6 relays via a local web browser interface (
Code:
192.168.4.1
).
The Problem: Although the ESP32 successfully creates and broadcasts the Wi-Fi Access Point (and my phone/PC connects to it without issues), whenever I try to open
Code:
[http://192.168.4.1](http://192.168.4.1)
in the browser, it immediately fails with
Code:
ERR_CONNECTION_REFUSED
.
My Current Logic Structure in Flowcode:
  1. Code:
    PCF8574::Initialise()
  2. Code:
    WLAN_ESP32::Initialise()
  3. Code:
    WLAN_ESP32::CreateAccessPoint("AHMED-KC868-A6", "12345678", 1, 3)
  4. Code:
    6 seconds delay
  5. Code:
    WLAN_ESP32::SocketListen(80)
  6. Inside
    Code:
    Loop forever
    :
    • Code:
      WLAN_ESP32::SocketRead(...)
    • Checking HTTP GET requests (
      Code:
      /r1/on
      ,
      Code:
      /r1/off
      , etc.) and updating
      Code:
      PCF8574::WritePort
    • Code:
      SocketWrite
      (HTTP 200 OK header & HTML chunks)
    • Code:
      WLAN_ESP32::SocketClose()
    • Code:
      WLAN_ESP32::AcceptClose()
    • Code:
      WLAN_ESP32::AcceptOpen()
    • Code:
      100 ms delay
My Question: What is the correct macro sequence and logic in Flowcode to properly handle incoming HTTP connections on port 80 for the KC868-A6? Why is the browser getting a "Connection Refused" error even though the socket is listening and AP is active?
Any example flowchart or guidance would be greatly appreciated. Thank you!


Attached Files Image(s)
   
Reply


Messages In This Thread
No AP appears - by sergey1945 - 08-13-2025, 12:12 PM
RE: No AP appears - by admin - 08-13-2025, 01:37 PM
RE: No AP appears - by sergey1945 - 08-13-2025, 02:27 PM
RE: No AP appears - by sergey1945 - 08-13-2025, 05:34 PM
RE: No AP appears - by admin - 08-13-2025, 11:50 PM
RE: No AP appears - by sergey1945 - 08-14-2025, 02:26 PM
KC868-A6 SoftAP Web Server using Flowcode - Getting - by ahmed-KC868-A6 - 11-07-2026, 01:25 PM
RE: No AP appears - by ahmed-KC868-A6 - 11-07-2026, 10:30 PM
RE: No AP appears - by admin - 11-08-2026, 12:38 AM

Forum Jump:


Users browsing this thread: