Coder Social home page Coder Social logo

Mport about mpower-tools HOT 6 OPEN

magcode avatar magcode commented on June 28, 2024
Mport

from mpower-tools.

Comments (6)

magcode avatar magcode commented on June 28, 2024

Sorry. I don't own a mPort. No idea what is inside and if mqtt works on this thing.
Does it have a /var/log/messages? Anything inside from the thermostat script?

You can also try to just run the

mosquitto_sub -I -h -v

from the command line and see what happens

from mpower-tools.

west-pool avatar west-pool commented on June 28, 2024

Hi,

the status of mqtt v2 running on mPort are:

MF.v2.1.12# ./mqrun.sh
mqtt: killing old instances
killall: mqsub.sh: no process killed
mqtt: Using temp file /tmp/mqtmp.XXXXwKkfps
mqtt: starting pub and sub scripts
MF.v2.1.12# mqtt: MQTT listening...
mqtt: Found 0 ports.
mqtt: Publishing to 192.168.0.1 with topic homie/mPortAcessos

but can't find any sensors connected.

When I try run mosquito_sub in mPort I get this.

MF.v2.1.12# ./mosquitto_sub -I -h -v
./mosquitto_sub: can't load library 'libmosquitto.so.1'

from mpower-tools.

magcode avatar magcode commented on June 28, 2024

mqtt v2 does not find ports because it is designed to work with mpower. Feel free to change it and support mport "sensors"

When I try run mosquito_sub in mPort I get this.

set ld lib path before:

export LD_LIBRARY_PATH=/var/etc/persistent/mqtt

of course you need also provide the right params for mosquitto_sub. see manual of mosquitto_sub

from mpower-tools.

west-pool avatar west-pool commented on June 28, 2024

ok, let me try then.
I will update you with more info asap.

Thank You

from mpower-tools.

Simonk007 avatar Simonk007 commented on June 28, 2024

@ws

ok, let me try then.
I will update you with more info asap.

Thank You

Did you manage to find a solution

from mpower-tools.

alexdan-77 avatar alexdan-77 commented on June 28, 2024

useless thing...doesnt work propertly. mFiMSC doesnt know.

from mpower-tools.

Related Issues (19)

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.