comparison py/sensor.py @ 293:d15dda1b1f76

merge
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jul 2019 18:29:45 +0800
parents 4cbcbba567ab
children
comparison
equal deleted inserted replaced
292:28eb733cb803 293:d15dda1b1f76
1 import os
2
3 def make_sensor(server):
4 if server.test_mode():
5 import sensor_test
6 return sensor_test.SensorTest(server)
7 else:
8 import sensor_ds18b20
9 return sensor_ds18b20.SensorDS18B20(server)
10