Skip to content

Conversation

@sticilface
Copy link
Contributor

Add SYSTEM_EVENT_WIFI_READY call back: allows you to hook in, as the sdk does not generate this event for you for some reason.

As it stands the SDK does not appear to set WIFI_MODE_NULL correctly. if the wifi is initialised and set to WIFI_MODE_NULL it actually defaults to AP mode. This fix keeps WIFI_MODE_NULL within the ESP class if the wifi has not been init yet, and works in my testing. albeit a one sided conversation.
#1306

…lows you to hook in, as the sdk does not generate this event for you.

As it stands the SDK does not appear to set `WIFI_MODE_NULL` correctly.  if the wifi is initialised and set to `WIFI_MODE_NULL` it actually defaults to AP mode.  This fix keeps `WIFI_MODE_NULL` within the ESP class if the wifi has not been init yet, and works in my testing.  albeit a one sided conversation.
espressif#1306
@reaper7
Copy link
Contributor

reaper7 commented Apr 19, 2018

this PR helps me. tnx!

@AGSPhoenix
Copy link

Fix working here too; thanks.

@petrkr
Copy link

petrkr commented May 3, 2018

+1 fixed, please merge

@me-no-dev
Copy link
Member

@sticilface can you please adjust this to be inline with the latest code? we added a parameter to the low level functions in order to enable proper persistency

@me-no-dev
Copy link
Member

pinging dr. @sticilface ! :)

@sticilface
Copy link
Contributor Author

@me-no-dev Sorry was busy last week. That should take care of it :)

@me-no-dev me-no-dev merged commit c24a340 into espressif:master May 23, 2018
@me-no-dev
Copy link
Member

Thanks @sticilface :)

@smacyas
Copy link

smacyas commented May 24, 2018

#1432

@dsptech
Copy link

dsptech commented Jun 25, 2018

Hi,
I see that in the merging with master branch, the fix on WiFiGenericClass::getMode() was missed:
' if(!wifiLowLevelInit()){
return WIFI_MODE_MAX;
' replaced by
'
if(!_esp_wifi_started){
return WIFI_MODE_NULL;
'

Without this fix, I experiencing that WiFi.scanComplete() will return WIFI_SCAN_RUNNING forewer.

Curclamas pushed a commit to Curclamas/arduino-esp32 that referenced this pull request Aug 21, 2018
)

* Add `SYSTEM_EVENT_WIFI_READY` call back once wifi service is init.  allows you to hook in, as the sdk does not generate this event for you.
As it stands the SDK does not appear to set `WIFI_MODE_NULL` correctly.  if the wifi is initialised and set to `WIFI_MODE_NULL` it actually defaults to AP mode.  This fix keeps `WIFI_MODE_NULL` within the ESP class if the wifi has not been init yet, and works in my testing.  albeit a one sided conversation.
espressif#1306

* make changes compatible with new _persistent behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants