Mosquitto+AirVatage+MqttClient on mangOH Green with wp7607?

Hi :grinning:
I’m working for the first time with mangOH green.
I am having a little difficulty in understanding how communication with Mosquitto MQTT broker works. In particular, I did not understand how to send messages and especially how to program and put together the three elements:

  • Mosquitto
  • MqttClient based on Paho
  • AirVantage (which could be used as a broker?).
    Could you by any chance be kind enough to explain to me how these elements interact with each other? Have I to work in the paho-based folder?

Contribute to mangOH/MqttClient development by creating an account on GitHub.

I installed Mosquitto on my virtual machine, I also made some small pub / sub applications, but I really don’t know how to use it in a larger project. I also registered my mangOH device on AirVantage. I would also be very happy if you knew of any tutorials. Thank you very much for your attention and again sorry for the inconvenience.

you can capture wireshark log and see if the application sends out TCP packet on the MQTT server

Who is the Mqtt server? Mosquitto? The broker?

please google it by “wireshark linux”

yes, thank you, but I did not understand what it has to do with what I asked, in the sense that I would like to understand how to use in my communication the three elements Mosquitto, MqttClient folder based on Paho and AirVantage …


using wireshark can let you know if your legato application is sending out TCP packet out correctly.

good luck!

Ok but my question was different…

you might have a look on this sample code:

okay. I followed this tutorial:

I correctly installed mqttClientSampleApp (because it fits to my goals), I runned it:

But i didn’t understand what to do because on the guide i see the command mqtt in the shell, but in my case it doesn’t work:
How can I install it? On the guide I see:

seems you did not export path

Do you say it?

Isn’t it for GCloud?

not sure, probably you need to debug by yourself as i don’t develop this application

I extracted the path but obtain this error (and log)…

I’m trying but if I include mqttCLI in apps folder it doesn’t work, neither if I give the .adef file path:

Could be this the problem?

No problem is found in the sample app

You can port the app to there

I have to include app in green.sdef file not?

I don’t think so … …

what do you mean so for “port the app here”?