Some updates.

Change-Id: I57613fb1106c95dd1be2321e812d1b103c38ceb3
This commit is contained in:
Nicola Peditto 2017-04-26 16:56:06 +02:00
parent 0bc5edd8d6
commit f19d7bb1c9
3 changed files with 19 additions and 21 deletions

View File

@ -593,6 +593,7 @@ class WampManager(object):
"""
def __init__(self, wamp_conf):
# Connection to Crossbar server.
wampConnect(wamp_conf)
@ -600,6 +601,24 @@ class WampManager(object):
LOG.info(" - starting Lightning-rod WAMP server...")
reactor.run()
"""
# TEMPORARY ------------------------------------------------------
from subprocess import call
LOG.debug("Unmounting...")
try:
mountPoint = "/opt/BBB"
# errorCode = self.libc.umount(mountPoint, None)
errorCode = call(["umount", "-l", mountPoint])
LOG.debug("Unmount " + mountPoint + " result: " + str(errorCode))
except Exception as msg:
result = "Unmounting error:", msg
LOG.debug(result)
# ------------------------------------------------------------------
"""
def stop(self):
LOG.info("Stopping WAMP agent server...")
reactor.stop()

View File

@ -1,8 +0,0 @@
{
"plugins": {
"zero": {
"onboot": "false",
"callable": "true"
}
}
}

View File

@ -1,13 +0,0 @@
{
"iotronic": {
"board": {
"code": "<REGISTRATION-TOKEN>"
},
"wamp": {
"registration-agent": {
"url": "ws://<WAMP-SERVER>:<WAMP-PORT>/",
"realm": "<IOTRONIC-REALM>"
}
}
}
}