Skip to content
Snippets Groups Projects
Commit 33c756ec authored by ptangu01's avatar ptangu01
Browse files

modify topic and rm xaalbus

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1335 b32b6428-25c9-4566-ad07-03861ab6144f
parent 0d3b84d7
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ class MqttRelay(xAAL.devices.Device):
self.__mqttc.publish(topic,payload=msgJson,qos=self._qos,retain=self._retain)
class CustomEngine(xAAL.core.Engine):
def setDevTypeFilter(self,values):
......@@ -81,7 +82,6 @@ def main():
port = cfg.get(name,'port')
service = cfg.get(name,'service')
client_id = cfg.get(name,'client_id')
xaalbus = cfg.get(name,'xaalbus')
ca_certs = cfg.get(name,'ca_certs')
logger = xAAL.tools.getLogger(__name__,loglevel.upper(),'%s.log'%logfile)
......@@ -89,7 +89,7 @@ def main():
logger.info("Log file : %s" % logfile)
# Create topic
topic = '/' + service + '/' + client_id + '/' + xaalbus + '/devices'
topic = service + '/homes/' + client_id + '/devices'
logger.info("MQTT topic : %s" % topic)
# Create a client instance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment