--- a/Beremiz_service.py Mon May 14 08:45:44 2018 +0200
+++ b/Beremiz_service.py Mon May 14 13:05:54 2018 +0200
@@ -619,7 +619,7 @@
WC.SetServer(pyroserver, wampconf, wampsecret)
- _wampconf = WC.LoadWampClientConf()
+ _wampconf = WC.GetConfiguration() if _wampconf.get("url", False) and _wampconf.get("active", False): # TODO : test more ?
--- a/runtime/WampClient.py Mon May 14 08:45:44 2018 +0200
+++ b/runtime/WampClient.py Mon May 14 13:05:54 2018 +0200
@@ -177,7 +177,7 @@
-def LoadWampClientConf(items=None):
+def GetConfiguration(items=None): WSClientConf = json.load(open(_WampConf))
if items and isinstance(items, list):
@@ -196,9 +196,9 @@
print(_("WAMP load error: "), e)
-def SaveWampClientConf(items):
+def SetConfiguration(items): - WSClientConf = LoadWampClientConf()
+ WSClientConf = json.load(open(_WampConf)) for itemKey in items.keys():
@@ -245,9 +245,9 @@
- WSClientConf = LoadWampClientConf()
+ WSClientConf = GetConfiguration() - WSClientConf = LoadWampClientConf()
+ WSClientConf = GetConfiguration() print(_("WAMP client connection not established!"))