I want to deploy a remote solar-powered weather station as per Project 4 without LoRa. I want instead to save the sensor data to an SD Card file with a timestamp. However, there isn’t internet and I need a way to date/time stamp the data when it is awake. What are my options?
You can use an RTC module with a coin cell to keep track of time.
We have a tutorial for Arduino. I guess it should be similar for the ESP32:
This tutorial was written a long time ago, so it’s not much complete.
I hope this helps.
Hi Sara In this tutorial, the code uses byte pointer variables which are converted to decimals in a print statement. I would like to save the values to string and save to a txt file, which I will open and send via MQTT. Can you describe how to convert the byte pointer variables to characters?
Many thanks, Jack
I think you can use something like this:
String yearString = String((char
I didn’t test it.