Simple webserver with ZBasic and ESP8266

Discussion of issues related to writing ZBasic applications for targets other than ZX devices, i.e. generic targets.
Post Reply
memi205
Posts: 6
Joined: 03 May 2018, 16:41 PM

Simple webserver with ZBasic and ESP8266

Post 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 !
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Simple webserver with ZBasic and ESP8266

Post 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.
- Don Kinzer
memi205
Posts: 6
Joined: 03 May 2018, 16:41 PM

Post 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!
Post Reply