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 ?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With