Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:36 10 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Esp-Link built in web server and MM

Author Message
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 11:22am 23 Jan 2018
Copy link to clipboard 
Print this post

Hello All,

Following on from my attempts to add a web interfaces to my micromites using esp-basic, which worked but wasn't very stable, I'm now experimenting with esp-link.

I've been able to upload a basic html page from my PC (using the 'select web page' button') to the built in server and display it, but now I'm stuck.

My MM is reading a temperature sensor and outputting the result to the serial port. Now I want to send it to esp-link, probably embedded in a html page the MM has created?

I've been googling for documentation and examples, but have drawn a blank. Has anyone got any links they could share?

Rgds

Steve
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 208
Posted: 08:57pm 24 Jan 2018
Copy link to clipboard 
Print this post

Can't help you with esp-link, but have you seen this topic from
the guru matherp? Especially since it contains code for
BME280 & DS18B20 devices.
Even if no use to you, a good read...

MM2: webserver with AT mode ESP8266

Regards
led

Miss you George
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 11:02pm 24 Jan 2018
Copy link to clipboard 
Print this post

Steve, Agree ESP8266 as the web server works but is not stable enough unfortunately.
ESP-Link is great as it was intended as a TCP/serial link and a few people on the forum use it a lot to communicate with the mites, I also , when I need a program link while developing. I think the Web Server development is in its early stages plus I think they are driving towards using MQTT and external servers.

I now use ESP8266 all the time using ESPbasic as the network interface to MX170/470 , then using UDP or HTTP messaging to other uMites, picromite and on windows with VB6 and more lately B4J for windows and B4A for Android Tablets and Phones. I developed a program in ESPbasic that runs on the ESP8266 which is very stable and a library for the uMites that performs the interface via the com port, which provides a 2 way command structure , plus networking UDP, HTTP, NTP for Time IOT , email etc.

Mike
Edited by MikeO 2018-01-26
Codenquilts
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 05:00pm 25 Jan 2018
Copy link to clipboard 
Print this post

  MikeO said  
I now use ESP8266 all the time using ESPbasic as the network interface to MX170/470 , then using UDP or HTTP messaging to other uMites, picromite and on windows with VB6 and more lately B4J for windows and B4A for Android Tablets and Phones. I developed a program in ESPbasic that runs on the ESP8266 which is very stable and a library for the uMites that performs the interface via the com port, which provides a 2 way command structure , plus networking UDP, HTTP, NTP for Time IOT , email etc.

Mike


I think I'm going to give ESPbasic another try. While researching alternative languages for the ESP I noticed others had problems with the ESP intermittently crashing, the one common cause seems to be power supply problems.

At the moment I'm using ESP12's mounted on small pcbs with their own 3v3 regulators and usb to serial converters, they draw their power from my computers usb port. I'm going to feed them directly from my bench power supply and see if that helps.

Mike, can I ask whether you are using the V2 or V3 branch, and how stable you find it? I don't care about the odd crash, but I was running a very simple program, reading a sensor and outputting the result on a webpage and mine were going down every hour or so!

Led, I did look at Matherp's example and I'm not ruling it out completely. But for now I like the idea of off loading the web part of my project to the ESP, because that frees up memory on the MM which means I can stick with the MX170 which is easier to solder than the smd MX470!.
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 09:32pm 25 Jan 2018
Copy link to clipboard 
Print this post

I am only using branch V3 the other is now deprecated.

I don't have power supply problems, its should draw in the order of 60-80 mA, more when its transmitting but for short bursts you won't see it. Put a cap of arround 220uF near to the module, also 100n decoupling and you should not have any issues. I tend to use the basic ESP8266 ESP-01S WiFi Serial Transceiver Module with 1MB Flash, make sure you flash the correct ESPbasic for the ammount of Flash Ram on the module as the ESPbasic image varies and some of the features are taken out. The way i use it I don't need them anyway.

I still don't recommend trying to host your web page on the module, I think the problem is string handling , there are probably memory leaks and the ram gets used up. Stick to using it to interface to your network and it works fine.

Mike
Codenquilts
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025