Sampling rate of sensors


#1

I have a few DS18b20 temperature sensors working but I dont know how often they sample the temperature.
Can the rate be adjusted as i dont need to know evry few milliseconds…
Alos this would reduce the amount of data being uploaded .


#2

which device are you using raspberry pi or arduino?


#3

Its Raspberry pi


#4

i guess you are using the pi agent, you can rather use the https://github.com/myDevicesIoT/Cayenne-MQTT-Python and send data at your own time interval.
For pi agent you will have to follow the installation guide here https://github.com/myDevicesIoT/Cayenne-Agent and install a new device. then navigate to sensor.py and change the REFRESH_FREQUENCY. currently it is set to 15 seconds.
a better option is use python library as it gives more freedom.