Skip to content

Commit

Permalink
Added poll delay as an argument
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Tremblay, ing. <[email protected]>
  • Loading branch information
ChristianTremblay committed Sep 21, 2015
1 parent ab74a0e commit 527b0cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions BAC0/tasks/Poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ class Poll(Task):
"""
Will fit fan status with fan command
"""
delay = 10

def __init__(self, points):

def __init__(self, points, delay = 60):
"""
:param pointName: (str) name of the point to read
:param controller: (BAC0.core.devices.Device) Device to read from
:param delay: (int) Delay between reads in seconds, defaults = 10sec
:returns: Nothing. Use task.value to read the last value read
"""
Task.__init__(self,Poll.delay)
Task.__init__(self, delay)
self.points = points

def task(self):
Expand Down

0 comments on commit 527b0cf

Please sign in to comment.