Hello, I am trying to create a life band as a remote health monitoring project, but there are mistakes regarding the dps310 sensor. I have downloaded and added the dps310 library, but the same mistake appears all the time.
//FOR DPS 310 PRESSURE SENSOR
#include <Dps310.h>
#include <Dps422.h>
#include <DpsClass.h>
Dps310 = dps310; // declare an instance of the Dps310 object
const float sea_press = 1013.25; // DECLARING SEA LEVEL PRSSURE AS CONSTANT
int alttitude = 0; // the sensor value
int minimumalttitude = 10000; // minimum sensor value (changes after calibration)
int maximumalttitude = 0; // maximum sensor value(changes after calibration)
Although I declare the instance, the problem that appears is that :
RHM:6:8: error: expected unqualified-id before '=' token
This is not the only problem, the main problem is on the ret function as when I code:
ret = Dps310.measureTempOnce(temperature, oversampling);
the errors that comes up is:
RHM:91:15: error: expected primary-expression before '.' token
Below you can find attached the whole code of my remote health monitoring device, and the errors that appear when compiled. I have sent the code both in Word and Arduino in case you can't open a file. When you compile it the problems should come up, but if not I will send you a screenshot of the problems as well.
Thank you very much, I hope I can solve these problems for my dissertation!
RHM.ino (14.9 KB)
FOR DPS 310 PRESSURE SENSOR.pdf (262 KB)
Errors.pdf (192 KB)