Skip to content
Snippets Groups Projects
Commit c017a7ef authored by jkerdreu's avatar jkerdreu
Browse files

Added send_notif for device

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2039 b32b6428-25c9-4566-ad07-03861ab6144f
parent 29ba7e8f
Branches
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class Attribute(object):
eng = self.device.engine
if eng:
eng.add_attributesChange(self)
logger.debug("Attr change %s=%s" % (self.name,value))
logger.debug("Attr change %s %s=%s" % (self.device.address,self.name,value))
self.__value = value
def __repr__(self):
......@@ -244,3 +244,8 @@ class Device(object):
for attr in dev_attr.values():
result.update({attr.name: attr.value})
return result
def send_notification(self,notification,body={}):
""" queue an notification, this is just a method helper """
if self.engine:
self.engine.send_notification(self,notification,body)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment