comparison py/sensor.py @ 534:0cc7f2dda0e8

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
533:815f811f6a65 534:0cc7f2dda0e8
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