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

BUG: [APdisconnect] set_config failed! #2950

Closed
tablatronix opened this issue Feb 10, 2017 · 8 comments
Closed

BUG: [APdisconnect] set_config failed! #2950

tablatronix opened this issue Feb 10, 2017 · 8 comments
Labels
waiting for feedback Waiting on additional info. If it's not received, the issue may be closed.

Comments

@tablatronix
Copy link
Contributor

Basic Infos

Hardware

Hardware: nodemcu v1
Core Version: 2.3

Description

When I call softap or I get debug level errors, on config ret variable failures
WiFi.softAPdisconnect();

Settings in IDE

Module: nodemcu v1 amica
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: nodemcu?

Sketch

Cannot reproduce outside of larger sketch

What in the world would cause this ?

@tablatronix
Copy link
Contributor Author

tablatronix commented Feb 11, 2017

my board also get in a persistent mode AP+STA, and no matter what i do i a sketch to remove the AP, doesn't work.

set_config failed!
always , I am guessing this is the problem.

    	WiFi.persistent(true);
    	WiFi.mode(WIFI_AP_STA);
    	WiFi.softAPdisconnect(true);
    	WiFi.mode(WIFI_STA);

reboot, printDiag still mode STA+AP
driving me insane.

I guess Ill throw master on here and see if its fixed

@tablatronix
Copy link
Contributor Author

tablatronix commented Feb 12, 2017

looks like the only way I got it to work so far was to make it AP only, the disconnect still returns false, and says failed but it works,

    ETS_UART_INTR_DISABLE();
    ret =  wifi_set_opmode_current(WIFI_AP);
    ETS_UART_INTR_ENABLE();
    WiFi.mode(WIFI_STA); // turns sta back on

any clue why?

Figuring sta causes issues with ap I tried wifi_station_disconnect and turning off autoreconnect policy also to no avail.

I just realized begin() does touch ap flash via the #1997 workaround
wifi_station_ap_number_set , I wonder if this causes a problem with some kind of mismatch

@devyte
Copy link
Collaborator

devyte commented Sep 9, 2017

@tablatronix is this still an issue with latest git? To be honest, I don't fully understand your problem description.

@devyte devyte added the waiting for feedback Waiting on additional info. If it's not received, the issue may be closed. label Sep 9, 2017
@tablatronix
Copy link
Contributor Author

Ill check again, I have been waiting for rc1

@devyte
Copy link
Collaborator

devyte commented Oct 27, 2017

@tablatronix rc2 is out. Have you tested if this is still valid?

@tablatronix
Copy link
Contributor Author

Sorry I have not, let me install master real quick

@tablatronix
Copy link
Contributor Author

I have some example sketches and a bug with apdisconnect failing also now in rc2 I will post them tomorrow.

@tablatronix
Copy link
Contributor Author

created, #3793
This issues was confusing and all over the place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for feedback Waiting on additional info. If it's not received, the issue may be closed.
Projects
None yet
Development

No branches or pull requests

2 participants