Giter VIP home page Giter VIP logo

Comments (5)

gmag11 avatar gmag11 commented on September 23, 2024

Logs show normal behabiour, no errors and no warnings. So, I understand communication between node and gateway is fine.

What MQTT client are you using to subscribe to messages? What is the configuration / comman line ?

from enigmaiot.

a-pinon avatar a-pinon commented on September 23, 2024

I am using Mosquitto MQTT.
I have two Gateway-MQTT bridges. One with 0.5.1 version named Home01 and another one with 0.9.4 version named Casa01.
I have one node connected to each of them.
The command line to subscribe is:

mosquitto_sub -v -h 192.168.0.150 -p 1883 -t '#'

and the output is:

Casa01/W01/status {"per":0.000000e+00,"lostmessages":0,"totalmessages":26,"packetshour":362.90}
Home01/5C:CF:7F:23:D7:DC/data [{"channel":0,"type":103,"name":"temperature","value":22.7},{"channel":1,"type":104,"name":"humidity","value":70.5},{"channel":2,"type":121,"name":"altitude","value":20},{"channel":3,"type":115,"name":"pressure","value":1010.8}]
Home01/5C:CF:7F:23:D7:DC/status {"per":0.000000e+00,"lostmessages":0,"totalmessages":2,"packetshour":1060.38}
Casa01/W01/status {"per":0.000000e+00,"lostmessages":0,"totalmessages":27,"packetshour":362.90}
Home01/5C:CF:7F:23:D7:DC/data [{"channel":0,"type":103,"name":"temperature","value":22.7},{"channel":1,"type":104,"name":"humidity","value":70.5},{"channel":2,"type":121,"name":"altitude","value":20},{"channel":3,"type":115,"name":"pressure","value":1010.8}]
Home01/5C:CF:7F:23:D7:DC/status {"per":0.000000e+00,"lostmessages":0,"totalmessages":3,"packetshour":360.36}

In the 0.5.1 version system (Home01) I receive "status" and "data" topics for the node, but in the 0.9.4 version system only receive "status" topic but not "data".

Thanks in advance.

from enigmaiot.

gmag11 avatar gmag11 commented on September 23, 2024

Nodes must have same version as gateway they are connected to. You may try to use another example as enigmaiot_node_msgpack.

Sorry, I cannot give you more help without more information.

from enigmaiot.

a-pinon avatar a-pinon commented on September 23, 2024

Thanks for your time.
I used the same version on the node and gateway for testing each version.
The examples are used as is for testing version 0.9.4.
If I use the enigmaiot_node_msgpack example then I get the "data" topic.

from enigmaiot.

gmag11 avatar gmag11 commented on September 23, 2024

I'm glad it is working. I'm closing this issue. Let me know if I can help you again

from enigmaiot.

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.