Hi
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?
Hi.
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:
Guide for Real Time Clock (RTC) Module with Arduino (DS1307 and DS3231)
This tutorial was written a long time ago, so it’s not much complete.
I hope this helps.
Regards,
Sara
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
Hi.
I think you can use something like this:
String yearString = String((char *) year);
I didn’t test it.
Regards,
Sara