Some updates.
Change-Id: I57613fb1106c95dd1be2321e812d1b103c38ceb3
This commit is contained in:
parent
0bc5edd8d6
commit
f19d7bb1c9
|
@ -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()
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"plugins": {
|
||||
"zero": {
|
||||
"onboot": "false",
|
||||
"callable": "true"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"iotronic": {
|
||||
"board": {
|
||||
"code": "<REGISTRATION-TOKEN>"
|
||||
},
|
||||
"wamp": {
|
||||
"registration-agent": {
|
||||
"url": "ws://<WAMP-SERVER>:<WAMP-PORT>/",
|
||||
"realm": "<IOTRONIC-REALM>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue