Re: Cannot connect to ESP8266 in AP mode with Android
Posted: Wed Jun 10, 2015 9:18 pm
My problem has been resolved with the release of SDK version 1.1.1.
This latest SDK version does introduces a problem that produces linker failures when attempting to compile the IoT_Demo included as an example App with the SDK.
But here is how to fix the error when compiling/linking:
The problem is that the "Makefile" does not include the pwm library. This must have been part of a different library with prior SDK versions. The updated "Makefile" entry should be:
Also, if your project is based on an earlier version of the SDK, the following function needs to be added to user_main.c just before the user_init(void) function:
You can look at the programming manual to decide what option to set, I selected "2"
defined as "No radio calibration after deep-sleep wake up"
With SDK 1.1.1 and the tweaks noted above, I can now connect to the ESP8266 in AP mode from my Android phone.
PROBLEM SOLVED!
This latest SDK version does introduces a problem that produces linker failures when attempting to compile the IoT_Demo included as an example App with the SDK.
But here is how to fix the error when compiling/linking:
The problem is that the "Makefile" does not include the pwm library. This must have been part of a different library with prior SDK versions. The updated "Makefile" entry should be:
Code: Select all
LIBS = c gcc hal phy pp net80211 lwip wpa pwm main json upgrade
Also, if your project is based on an earlier version of the SDK, the following function needs to be added to user_main.c just before the user_init(void) function:
Code: Select all
void user_rf_pre_init(void)
{
system_phy_set_rfoption(2);
}
You can look at the programming manual to decide what option to set, I selected "2"
defined as "No radio calibration after deep-sleep wake up"
With SDK 1.1.1 and the tweaks noted above, I can now connect to the ESP8266 in AP mode from my Android phone.
PROBLEM SOLVED!