Mercurial > templog
view py/sensor.py @ 253:0a1b642e3086
long polling config updates
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 08 Jun 2015 22:29:46 +0800 |
parents | 4cbcbba567ab |
children |
line wrap: on
line source
import os def make_sensor(server): if server.test_mode(): import sensor_test return sensor_test.SensorTest(server) else: import sensor_ds18b20 return sensor_ds18b20.SensorDS18B20(server)