annotate py/sensor.py @ 240:c90190a380c6

sha256 hmac now
author Matt Johnston <matt@ucc.asn.au>
date Tue, 19 May 2015 23:56:56 +0800
parents 4cbcbba567ab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
235
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 import os
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 def make_sensor(server):
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4 if server.test_mode():
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5 import sensor_test
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6 return sensor_test.SensorTest(server)
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7 else:
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8 import sensor_ds18b20
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 return sensor_ds18b20.SensorDS18B20(server)
4cbcbba567ab missing sensor.py
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10