Page 1 of 1
Simple webserver with ZBasic and ESP8266
Posted: 09 May 2018, 11:29 AM
by memi205
Is it possible to program in ZBasic on an ESP8266, a very simple webserver with a simple web page with some variables in this page. With a browser, I could connect to this page and adjust the variables. These variables would be parameters for my program.
If yes, how to proceed?
Thank you !
Re: Simple webserver with ZBasic and ESP8266
Posted: 09 May 2018, 17:41 PM
by dkinzer
memi205 wrote:Is it possible to program in ZBasic on an ESP8266, a very simple webserver with a simple web page with some variables in this page.
Yes. In the ZBasic installation directory you'll find a directory named
Examples-ESP8266. In that directory, you'll find two HTTP server examples with different capabilities which are described in the commentary at the top of the program.
You may need to add code to expand the functionality to meet your needs but you should be able to figure out what changes to make and where to make them.
Also, be advised that if you're using Windows 7 or later you'll need to copy the example project files to a different directory (one outside of the Program Files tree) and compile the project in its new location.
Posted: 09 May 2018, 19:00 PM
by memi205
Thank you very much !
I found the examples you mentioned. I did not know it was so complicated.
I will read them carefully, I will try the examples and I will see how I can integrate and modify this code in my program.
Some Aspirin will surely help...
I really appreciate your help!