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

Fix UUID (not tested yet, but should be fine)



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2466 b32b6428-25c9-4566-ad07-03861ab6144f
parent 7a29be23
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ class WARP10Logger:
def setup(self):
dev = Device("logger.basic")
dev.address = self.cfg['addr']
dev.address = tools.get_uuid(self.cfg['addr'])
dev.vendor_id = "IHSEV"
dev.product_id = "WARP10 Logger"
dev.info = "%s@%s" % (PACKAGE_NAME,platform.node())
......@@ -57,7 +57,7 @@ class WARP10Logger:
now = round(time.time() * 1000000)
for k in msg.body:
name = '%s.%s' % (base,k)
tags = '{devid=%s}' % msg.source
tags = '{devid=%s}' % str(msg.source)
value = msg.body[k]
if value != None and type(value)!=list:
buf = buf +"%s// %s%s %s\n" % (now,name,tags,value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment