Giter Site home page Giter Site logo

Comments (7)

kueblc avatar kueblc commented on May 13, 2024

Your first two solutions may work, the third may not, given that the Tuya device expects to connect to a broker on a specific port.

I think that ideally, we should detect that a broker is already running and use that, rather than stopping and starting a new instance of mosquitto. I suppose this may bring about some new issues if the broker is password protected.

In the meantime, you could comment out these two lines in start_flash.sh:

sudo service mosquitto stop >/dev/null 2>&1
$screen_with_log smarthack-mqtt.log -S smarthack-mqtt -m -d mosquitto -v

from tuya-convert.

ragenhe avatar ragenhe commented on May 13, 2024

Thank you @kueblc - will comment the lines out and let it use my existing broker, which isn't password protected.

from tuya-convert.

GeorgeIoak avatar GeorgeIoak commented on May 13, 2024

Along these lines what happens if you have a different computer running mosquito broker, is that going to interfere with this process?

from tuya-convert.

kueblc avatar kueblc commented on May 13, 2024

Along these lines what happens if you have a different computer running mosquito broker, is that going to interfere with this process?

It shouldn't interfere

from tuya-convert.

merlinschumacher avatar merlinschumacher commented on May 13, 2024

Can this be closed?

from tuya-convert.

ragenhe avatar ragenhe commented on May 13, 2024

Yes sir! I got it!

from tuya-convert.

kueblc avatar kueblc commented on May 13, 2024

@merlinschumacher Perhaps we can open a new issue tagged as a feature request regarding automatic MQTT broker conflict resolution. I have some ideas, if you'd like help, or to assign the issue to me.

from tuya-convert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.