Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can MQTT be used to implement Request / Response behavior

Tags:

android

http

mqtt

We are planning to use MQTT to deliver messages from our server to an android devices we decided to go with the open source server mosquitto.

in most of the cases this is enough.(Publishing / subscribing ) but we have a cases where the client need to send parameters and get response from the server. i know the direct approach is to go with Http (Servlets for example) . but can we achieve this using MQTT since it would mean lower bandwidth consumption to the user ?

like image 949
A.Alqadomi Avatar asked Apr 09 '13 21:04

A.Alqadomi


1 Answers

As of MQTT version 5 this is possible. The specification has a Request/Response pattern specified.

Take a look at this: https://stackoverflow.com/a/59916330/1137669

like image 57
basickarl Avatar answered Oct 20 '22 01:10

basickarl