ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By alon24
#11571 I couldn't find an answer to this:

keep GPIO0 for >5 seconds. The module will reboot into
its STA+AP mode. Connect a computer to the newly formed access point and browse to
http://192.168.4.1/wifi in order to connect the module to your WiFi network. The example also
allows you to control a LED that's connected to GPIO2.

GPIO0 to GND? to 3.3v?

I tried both, and looked at the output in esplorer, it seems to reboot, but, the esp8266 access point is with WPA2 password - what should I put there?

Another question: how do I change the uart baud rate, not for the build but for run time.
Thanks.
User avatar
By prozac
#11839 Not sure I fully follow your question, but you don't need to do anything to the HW to set the mode. You can actuall change the mode at:
Code: Select allhttp://192.168.4.1/wifi/setmode.cgi?mode=<1, 2,3>
1 = Station mode
2 = AP Mode
3 = Station and AP Mode


As for UART, it is compiled in and the version of the code here does not have any AT command interface, so the serial is only for debug messages. If you want to add the AT commands back, it isn't too hard, but you should really think about how they would be used and if it makes sense.
User avatar
By Rajeev
#11904
lethe wrote:heatshrink is a submodule embedded in the repository, run "git submodule update --init" to check it out (see README).


@lethe. Thanks It worked. Though after resolving the issue of esptool (awesome one from from mamalala aka Chris) v/s python script.

Indeed, beer is due for @sprite_tm
User avatar
By sean_intez
#11919 Could someone please help me with this errors?
"Werner" in the page 24th of this topic had the same problem as me but he never stated how he resolved it. I initially built the SDK environment with version 9.3 and I noticed this errors. I just updated to v9.5 and errors still exist.
I could not follow SDK_Open_SDK since I could not install some of the packages. But I installed the environment using the other tutorial that shows step by step.

Code: Select allroot@debian:/opt/Espressif/esphttpd# make
CC user/auth.c
In file included from include/espmissingincludes.h:4:0,
                 from user/auth.c:25:
/opt/Espressif/ESP8266_SDK/include/stdint.h:83:5: error: "TENSILICA" is not defined [-Werror=undef]
 #if TENSILICA || 1
     ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:84:20: error: conflicting types for 'int32_t'
 typedef signed int int32_t;
                    ^
In file included from /opt/Espressif/ESP8266_SDK/include/ets_sys.h:11:0,
                 from /opt/Espressif/ESP8266_SDK/include/os_type.h:10,
                 from /opt/Espressif/ESP8266_SDK/include/user_interface.h:9,
                 from user/auth.c:17:
/opt/Espressif/ESP8266_SDK/include/c_types.h:17:29: note: previous declaration of 'int32_t' was here
 typedef signed long         int32_t;
                             ^
In file included from include/espmissingincludes.h:4:0,
                 from user/auth.c:25:
/opt/Espressif/ESP8266_SDK/include/stdint.h:85:22: error: conflicting types for 'uint32_t'
 typedef unsigned int uint32_t;
                      ^
In file included from /opt/Espressif/ESP8266_SDK/include/ets_sys.h:11:0,
                 from /opt/Espressif/ESP8266_SDK/include/os_type.h:10,
                 from /opt/Espressif/ESP8266_SDK/include/user_interface.h:9,
                 from user/auth.c:17:
/opt/Espressif/ESP8266_SDK/include/c_types.h:15:29: note: previous declaration of 'uint32_t' was here
 typedef unsigned long       uint32_t;
                             ^
In file included from include/espmissingincludes.h:4:0,
                 from user/auth.c:25:
/opt/Espressif/ESP8266_SDK/include/stdint.h:123:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:220:6: error: "__int_fast64_t_defined" is not defined [-Werror=undef]
 #if !__int_fast64_t_defined
      ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:308:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:320:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
cc1: all warnings being treated as errors
make: *** [build/user/auth.o] Error 1