Serial2mqtt how to implement?
-
Hi,
Using mycontroller for quite some time now, works great!, Now i want to also see the sensors on i.e. my phone using mqttdashboard, or another mqtt tool.
I have seen that an extention to mycontroller was added some time ago called serial2mqtt. Now i am wondering how to imoplement this in my current setup.
Software was downloaded from this link
What are the next steps to add the tool to my current running setup?
Thx for all the help!!
-
@tag Thank you for the interest in Serial2mqtt. This tool designed for who does not have MQTT gateway. They have the only serial gateway and they want to use their gateway on MQTT controller, etc.,. For now, it supports only for MySenaors.
-
Seems that if i start serial2mqtt, my original GW (attached to gpio) that gets the data from /dev/ttyMySensorsGateway does not receive anything anymore
Which steps do i need to take to have both working?
This is the modified part of ./conf/serial2mqtt.properties
#======================================================================== # Serial port settings # driver types: AUTO, JSERIALCOMM # connection retry next attempt in seconds #======================================================================== serial.driver=AUTO serial.port=/dev/ttyMySensorsGateway serial.baud.rate=115200 serial.connection.retry=60 #======================================================================== # MQTT settings # QOS: 0, 1, 2 # connection retry next attempt in seconds #======================================================================== mqtt.qos=0 mqtt.broker=tcp://localhost:1883 mqtt.client.id=serial2mqtt-adapter mqtt.topic.publish=mygateway-out mqtt.topic.subscribe=mygateway-in mqtt.username= mqtt.password= mqtt.connection.retry=60
-
@tag In this case, Actual MyController do not listen serial port, if it is running on the same machine. What is your hardware?
-
Using the OPI-Zero 512Mb version with the radio attached to the gpio header.
mysgw is compliled and using the tty device file: /dev/ttyMySensorsGateway -
@tag no other services not using your serial port, right? When using serial2mqtt, On MyController you should use MQTT(via serial2mqtt) to connect your gateways.
-