Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By alonewolfx2
#7026 I am trying to understand your web routine.i understand "system.xml" has many varriables. like ~sys.heap~ mean heap size and i can use in html files and its replacing with heap size like "28562". ~sys.restart~ calling system_restart() and chip going to reboot.
also i am trying to desing new html pages with jquery. i can help you for html gui.

firstly how can i calculate webpages size in esp filesystem. now i have 512kb flash. my 4mb flash coming 2 week later.
secondly i saw a couple functions in web_int_callbacks.c. for ex: system_restart() in line 137. i wonder one thing.can we add other varriables in here like
"else if(!os_memcmp((void*)cstr, "gpio2off", 7)) gpio_output_set(0,BIT2,BIT2,0);"
User avatar
By pvvx
#7049
alonewolfx2 wrote:i wonder one thing.can we add other varriables in here like
"else if(!os_memcmp((void*)cstr, "gpio2off", 7)) gpio_output_set(0,BIT2,BIT2,0);"
Yes.
The new version of the variables will be merged... In order to create a single script...
uri vars + cookie + txt vars + POST vars + Content-Type: multipart/form-data + ...
User avatar
By alonewolfx2
#7057
pvvx wrote:
alonewolfx2 wrote:i wonder one thing.can we add other varriables in here like
"else if(!os_memcmp((void*)cstr, "gpio2off", 7)) gpio_output_set(0,BIT2,BIT2,0);"
Yes.
The new version of the variables will be merged... In order to create a single script...
uri vars + cookie + txt vars + POST vars + Content-Type: multipart/form-data + ...

I will try new version. I think github will be good for version numbering and version history, isn't it?
User avatar
By pvvx
#7062
alonewolfx2 wrote:I think github will be good for version numbering and version history, isn't it?
It takes a lot of time ...
I do not mind.
The current codes - to explore the possibilities, experiment. A fully working project - after.