The Forum » 'BB', Our Main Discussion Forum : Come in Here ! > ESP 01S Project
Login Register Search Recent Posts

Caleb7

Posted: 8 July 2017 1:59 PM
 

Member Since:
10 September 2011
Posts: 934
Points: 737


This post was awarded 1 point!

Hi guys,

I've recently begun working with the ESP 01S module which is an upgraded version of the ESP 8266 module. Currently I've got it connected to an Arduino so that it is powered from the Arduino's 3.3V pin and communicates over the Arduino IDE serial monitor (I send commands and get responses through the serial monitor). These are the AT commands I am successfully using:

AT+CWMODE=1 (Set module to work on STA mode)
 
AT+CWJAP= “Wi-Fi Network”,“Password” (Connected to a Wi-fi network)
 
AT+CIPMUX=1 (Configure ESP module as a server for multiple connections)
 
AT+CIPSERVER=1,80  (Enable open server mode and start server at port 80)
 
AT+CIPSEND=0,? (Set channel through which data will be sent as 0 and set number of characters/bytes that need to be sent)
 
AT+CIPCLOSE=0 (Closes channel 0 so that data can be accessed by external devices)
 
However, as of now I have to set up a link between the ESP module and a device by first trying to connect to the IP address of the ESP module and then sending data using the CIPSEND and then CIPCLOSE commands. It will then display the data on the screen of the device but thats it I can't revisit the IP address to get the data or update what data is being displayed by the ESP module until I restart the link.
 
So my question is how can I have the ESP module responding to devices at anytime with a fixed response/display. My end goal is to have the ESP read data from sensors and display the sensors data so that I can access the IP address of the ESP module from a computer or phone and view the sensors status even as it continually changes.
 
Thanks :)

============================================================
CalebB - Moderator

Arnie123

Posted: 13 July 2017 3:48 PM
 

Member Since:
13 May 2017
Posts: 12
Points: 20


This post was awarded 1 point!

Hi Caleb, I don't use the ESP modules but I did some research and from what I found the only way to automatically update the website is to code the website to automatically refresh every second. Either that or you could try a different module like Ethernet. Hope this helps. Arnie
Last updated 13 July 2017 3:49 PM by Arnie123

tecco

Posted: 13 July 2017 5:40 PM
 

Member Since:
17 March 2013
Posts: 752
Points: 66


This post was awarded 1 point!

Hi Caleb 

 Yes Arnie is right you have to write a script that refreshes the page that the data is live on here's a link that might help: http://embedded-lab.com/blog/making-simple-weather-web-server-using-esp8266-bme280/

 

~Benjamin


============================================================
BENJAMIN IS A CREATOR (Moderator)

Caleb7

Posted: 13 July 2017 11:44 PM
 

Member Since:
10 September 2011
Posts: 934
Points: 737


This post was awarded 1 point!

Hi Arnie and Tecco,

Thanks for the response, I will have a look into that solution and keeo you guys updated.

Thanks :)


============================================================
CalebB - Moderator

You need to be a member to post.