Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GIGAR1: conflict between Access Point and common WiFi connection #858

Open
@giorgiogallina

Description

@giorgiogallina

Hello,

I am facing some issues while trying, in a larger project, to accomplish the following:

  1. Try to connect to the internet via WiFi
  2. If connection fails, open Access Point (AP) and let user insert WiFi credentials (through captive portal)
  3. Go back to point 1

Every time I close a connection, I callWiFi.disconnect() andWiFi.end(); Moreover, when AP operations are completed, I callWiFiClient::stop(). MyWiFiClient object is global and obtained throughWiFiServer::available().

After closing AP connection, I could connect to the WiFi but any connection (e.g., towww.google.com) failed by a time-out. I kind of solved the problem through the following code I invoke every time I switch between point 1 and 2 of the algorithm.
WiFi = WiFiClass(WiFiInterface::get_default_instance());
However I do not understand such a behaviour.

Now, if WiFi connection fails after AP was accomplished once, AP is opened again, but this timeWiFiServer::available() fails, in the sense that no data are ever available. However, I controlled network traffic through Wireshark and I see that DNS management throughWiFiUDP succeded, while an http requestGET /wpad.dat HTTP/1.1 was sent by the client, but never received by the server.

It seems to me that there are library issues then, or at least poor documentation for me to be able to understand whether I am doing anything wrong

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp