picstart wrote:A minor issue with esphttpd and the Feb 16 2015 version..... the issue is more of a warning since everything works with the htmlflashwifi/wifi.tpl (53%)
if [ $(stat -c '%s' firmware/webpages.espfs) -gt $(( 0x2E000 )) ]; then echo "firmware/webpages.espfs too big!"; false; fi
/usr/bin/sh: stat: command not found
/usr/bin/sh: [: -gt: unary operator expected
Run console C:\MinGW\msys\1.0\msys.bat and check command "stat", if it does not, follow the installation of the required packages:
cd C:\MinGW\bin
mingw-get install mingw32-base
mingw-get install mingw32-mgwport
mingw-get install mingw32-pdcurses
mingw-get install mingw32-make
mingw-get install mingw32-autoconf
mingw-get install mingw32-automake
mingw-get install mingw32-gdb
mingw-get install gcc
mingw-get install gcc-c++
mingw-get install libz
mingw-get install bzip2
mingw-get install msys-base
mingw-get install msys-coreutils
mingw-get install msys-coreutils-ext
mingw-get install msys-gcc-bin
mingw-get install msys-wget-bin
mingw-get install msys-m4
mingw-get install msys-bison-bin
mingw-get install msys-flex-bin
mingw-get install msys-gawk
mingw-get install msys-sed
mingw-get install msys-autoconf
mingw-get install msys-automake
mingw-get install msys-mktemp
mingw-get install msys-patch
mingw-get install msys-libtool
picstart wrote:Some things are a mystery
in esp8266_pcd8544 as an example the IP address is defaulted some where since a search did not find it.?
Where is it assigned or better how does it get assigned?
In the example esp8266_pcd8544 wi-fi parameters is not installed, you can use the example settings wi-fi from the :\Espressif\examples\esphttpd\user\wifi.c and C:\Espressif\examples\esphttpd\user\wifi.h and C:\Espressif\examples\esphttpd\include\user_config.h
like this C:\Espressif\examples\esp8266_pcd8544\user\user_main.c:
#include "wifi.h"
void user_init(void) {
...
system_set_os_print(1);
os_printf("\r\nSystem starting...\r\n");
wifiInit();
...
}
Thank you for your work. The issue with stat is very minor so it is your choice to decide to spend any time on it.
Issue
if [ $(stat -c '%s' firmware/webpages.espfs) -gt $(( 0x2E000 )) ]; then echo "firmware/webpages.espfs too big!"; false; fi
/usr/bin/sh: stat: command not found
Trouble shooting
Run console C:\MinGW\msys\1.0\msys.bat and check command "stat"
result is that stat is present