You can chat about native SDK questions and issues here.

User avatar
By Handyman
#93167 Hello all,
I have problem connecting to home wifi AP (which is my router). Application constantly filps between "state: 0 -> 2 (b0)" and "state: 2 -> 0 (2)". Application is basically compiled example "esp_mqtt_proj" with #define -ed STA_SSID and STA_PASS in 'mqtt_config.h'. I've tried other examples, they all behave the same. I'm running out of ideas on where to debug this. Found some similar logs online but most use Arduino libraries which I want to avoid.

SDK used: NONOS release/v3.0.5

Found this piece of information here: https://github.com/espressif/ESP8266_NONOS_SDK/issues/112#issuecomment-377176032 and it seems some kind of authentication fails, but that doesn't help much.
Code: Select all0: init
2: auth
3: assoc
5: run


Code: Select all 
ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 28688, room 16
tail 0
chksum 0xd1
load 0x3ffe8000, len 936, room 8
tail 0
chksum 0x10
load 0x3ffe83b0, len 1300, room 8
tail 12
chksum 0xc7
csum 0xc7
boot not set
ota1 not set
ota2 not set
V2
Mo
,�rf cal sector: 251
freq trace enable 0
rf[112]
load ...

System started ...
mode : sta(68:c6:3a:c4:a4:da)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
reconnect
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
reconnect
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
reconnect
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
reconnect
User avatar
By Handyman
#93197 I managed to connect to AP. Firstly I switched router Wifi to OPEN and connect to it without problems. After that I switched router WiFi back to WPA2 and successfully connect. Also, worth mentioning that connecting only worked with release/v2.2.x. Version release/v3.0.5 was stuck at state 5 and continued to flip between state 5 and state 2.