diff py/sensor_ds18b20.py @ 259:26eee8591f61

long polling works
author Matt Johnston <matt@ucc.asn.au>
date Tue, 09 Jun 2015 23:27:44 +0800
parents 659953f2ee03
children 20c89630be6c
line wrap: on
line diff
--- a/py/sensor_ds18b20.py	Mon Jun 08 22:33:04 2015 +0800
+++ b/py/sensor_ds18b20.py	Tue Jun 09 23:27:44 2015 +0800
@@ -35,7 +35,7 @@
     def run(self):
         while True:
             yield from self.do()
-            yield from self.server.sleep(config.SENSOR_SLEEP)
+            yield from asyncio.sleep(config.SENSOR_SLEEP)
 
 
     @asyncio.coroutine