Update temperature_sensor.py

This commit is contained in:
Ludovic BOUÉ 2024-10-17 17:21:45 +02:00 committed by GitHub
parent 425efa9263
commit 23d8f0f2d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,5 +19,6 @@ class TemperatureSensor(simple_device.SimpleDevice):
self._temp = TemperatureMeasurement()
self.servers.append(self._temp)
self._temp.MeasuredValue = 1850 # 18.5°C * 100
self._temp.MeasuredValue = random.randint(1500, 2500) # Random temp between 15°C and 25°C