MQTT versus HTTP protocols

I am looking at a protocol that "consumes" less bytes than HTTP because I would like to send data to EmonCMS via a USB stick modem.

I have a few questions about MQTT:
- I am running an emonhub version downloaded from github.com/emonhub/emonhub/tree/development in Februar this year. I guess I need to update it to take into account MQTT.

- Is there any distribution that would install emonhub + MQTT or do I need to get these 2 tools separately?

- Which MQTT distribution should I install on a Raspberry? Mosquitto ?

- Is there any good tool to simulate the MQTT protocol, I mean a tool that behaves as a client?

Thanks for your help

Bramco's picture

Re: MQTT versus HTTP protocols

Try MQTTSpy.

Paul Reed's picture

Re: MQTT versus HTTP protocols

I use Mosquitto

You also need to ensure that your emoncms installation is up to date, as it's only worked from (I think!) v8.5. I'm using v9 and it works great - both subscribing and publishing.

Paul

dBC's picture

Re: MQTT versus HTTP protocols

- Is there any good tool to simulate the MQTT protocol, I mean a tool that behaves as a client?

If you also install mosquitto-clients you'll get two command line programs:  mosquitto_pub and  mosquitto_sub.

 

daturach's picture

Re: MQTT versus HTTP protocols

Thanks for your inputs.

I am going to start from that page github.com/openenergymonitor/emonhub and see what I need to install. I have a Raspi but don't need any radio link. Data are coming through a serial to USB port directly and will be pushed to a EmonCMS instance on my Linux Shared Web Hosting service where EmonCMS 9.0 RC is running.

The only radio link is the GSM/UMTS modem. Let's see how this can be achieved...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.