I develop smart plug base on mt7687 , and i want to collect the error code when WIFI connection failed,in order to prompt user the errors .
The SDK version i develop with is 4.6.0. I'm excited that "WIFI_EVENT_IOT_CONNECTION_FAILED" event supports quite some error code.
Then i ran the following test:
1.I setup a wireless router , and then add the device MAC to the black list of ACL .
2. wifi_connection_register_event_handler(WIFI_EVENT_IOT_CONNECTION_FAILED, wifi_station_connect_fail_event_handler)
3.then configure the mt7687 to connect to the router
I expect to get some response like "auth fail" ,butit did not, and even "WIFI_EVENT_IOT_CONNECTION_FAILED" handler not called.
Instead the console printed (i set g_inband_debug_feature to 1)
and hangs from there. It seems inband command has something wrong in communication with N9
Could you help me with this issue ?