comparison py/sensor.py @ 235:4cbcbba567ab

missing sensor.py
author Matt Johnston <matt@ucc.asn.au>
date Tue, 05 May 2015 21:29:19 +0800
parents
children
comparison
equal deleted inserted replaced
234:fd29ae905d1b 235:4cbcbba567ab
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