I am currently working on a landslide-detection project coded in Python for a research group. At present we have two different sets of sensors running on two different RPis. One RPi has a strain gauge & one RPi has a set of temperature sensors. I have been tasked with running both sets of sensors at the same time & trying to aggregate data from them onto one CSV file on the temperature RPi via bluetooth.
One of the major sticking points of this current task is that I need to have the data aggregated onto the temperature RPi line-by-line in the format [Strain timestamp][Strain data] - [Temp timestamp][Temp data]. This is opposed to having two different batches of data on the RPi.
This means that each RPi needs to have a synced time over Bluetooth among other things. What way should I go about this? Do I need a common point for each of the RPis to sync their time to, or could I make the temperature sensor RPi wait for the strain gauge RPi to send over before it takes a reading?