Question: what is the difference between http and mqtt?
Answer: MQTT is data centric whereas HTTP is document-centric. HTTP is request-response protocol for client-server computing and not always optimized for mobile devices.