Data logging ESP8266 in STA mode

Hi,

i am currently running ESP8266 in STA (station mode) and i would like to record data in .csv format and access it in a webbrowser. Pls share your thoughts.

I have a version which logs into cloud database - but i am interested in local store.

Regds
Rahul.

Sounds good. Record it where?

1 Like

Look at the web server examples:
File -> Example -> ESP8266WebServer ->

1 Like

within ESP8266 - probably flash memory?

but the examples mentioned under ESP8266WebServer does not speak on STA mode file logging.

You really can't expect there to be example sketches for the 1,000,000,000 possible applications that people might use.

The examples demonstrate elements that you should combine into what you need.

I am aware of this - i am just looking for reference example. I do not think there exists any - which is fine - i can build one myself. Just wanted to get some direction.

Yeah, but what kind of direction? For that we need to hear specific questions. What is the roadblock you are facing right now?

Starting from scratch for data logging in STA mode. Which is the way to proceed - are there any best practices (if any)?

Objective : log data in STA mode and access it from ESPWebServer.

Question : should i store in EEPROM? (or) should i store information in JSON transient string and then flush to a CSV file? or any other approach.

If you have connectivity it is futile and overly complex to store it. Just pass it on if you possibly can.

If you are polling infrequently and not storing it in non-volatile memory, you have to be careful that it doesn't overflow dynamic memory (RAM buffers that you have allocated).

Also the obvious, if power is lost the data would be lost between polls.

So, you have to decide whether that matters...

Is the html page read by humans or machines?

html page currently is read by homo sapiens :). Looks like connecting to cloud database is the only approach.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.