Should I use MQTT or HTTP?

0 votes

Hi...
I'm actually working on a device that senses and collects data such as temperature, humidity, etc.

It's got a solar charged battery. 

Most of the time it's in a deep sleep state and wakes up only when it needs to sense and transfer data. This operation takes about 1-2 minutes, and then it goes back to sleep.

I'm not an expert in this area, but I think MQTT should be a good option if the device needs to be accessible to receive messages from a topic all the time, but in my case, it only read sensors and sent data to a server periodically.

Currently I'm sending the data through HTTP, but I'm wondering if it makes sense to implement MQTT? 

Sep 3, 2018 in IoT (Internet of Things) by Upasana
• 7,680 points
20 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

After testing MQTT vs HTTP(REST) over SSL from a normal server and a Raspberry Pi board, we inferred that the results depend on use-case and device where the process is running. This is true, both from a performance point of view and energy consumption.

In your case, we have a special test as well => delivering many messages (multiple probes) via HTTP, HTTP-batch or MQTT. I've come to the conclusion that:

  • If you have the possibility to send data in one HTTP request - it will be the best option. 
  • MQTT is on the second place.
  • HTTP with per-message delivery is much less power efficient and slower then MQTT.
answered Sep 3, 2018 by Annie

Related Questions In IoT (Internet of Things)

0 votes
1 answer

Should I Repair or Rewrite?

If it's a small system, and you ...READ MORE

answered Sep 25, 2018 in IoT (Internet of Things) by Annie97
• 2,190 points
11 views
0 votes
1 answer

How to use the data I receive from Azure IoT Hub?

The payload you receive will be a ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by DataKing99
• 8,100 points
45 views
0 votes
1 answer

How do I compare MQTT and TCP packets ?

It depends on the higher-level protocols (above ...READ MORE

answered Aug 27, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
33 views
0 votes
1 answer

Can i use ESP8266 as a network adapter?

With the Espressif SDK 1.5.2 for the ESP8266 it's not possible ...READ MORE

answered Sep 12, 2018 in IoT (Internet of Things) by Annie97
• 2,190 points
37 views
0 votes
1 answer

MQTT protocol connection error

Ok so you need two libraries to ...READ MORE

answered Jul 6, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points

reshown Jul 6, 2018 by Vardhan 284 views
0 votes
1 answer

Mosquitto 1.4.2 Websocket support

down vote In the dir mosquitto-1.4.X edit the ...READ MORE

answered Jul 9, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
67 views
0 votes
1 answer

IoT request response protocol

Based on your requirement of a light ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
165 views
0 votes
1 answer

What is the maximum message length for a MQTT broker?

It's not entirely clear what you're asking ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
81 views
0 votes
1 answer

NodeMCU HTTP : How to use HTTPS post request?

Your firmware might not have SSL/TLS enabled. ...READ MORE

answered Feb 11 in IoT (Internet of Things) by Shubham
• 12,270 points
80 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.