Using MQ Telemetry Transport Protocol in IBM Worklight Mobile Applications
j0nnymac 120000F9BQ Comment (1) Visits (15872)
The definitive article on using the MQ Telemetry Transport Protocol (MQTT) in a hybrid mobile app, developed for the Android platform, using IBM® Worklight Studio.
MQ Telemetry Transport (MQTT) protocol is a lightweight publish/subscribe messaging protocol, designed specifically for sending data over networks where connectivity is intermittent or bandwidth is at a premium. Compared to HTTP, MQTT imparts a number of advantages to a mobile app including faster response times, higher throughput, lower battery use and much lower bandwidth use (Facebook Messenger makes use of the MQTT protocol because of these attributes). MQTT's efficient use of network and battery power, along with its integration with enterprise messaging middleware, makes it well suited to use cases where an enterprise application needs to push data or interact with one or more phone apps.
In this article, we give you the tools to develop a simple Worklight app to send and receive messages over MQTT, and provide all the supporting information you need to design and build your own apps.
Here's a diagram showing how it all fits together...
We also provide you with a sample app, along with all the relevant code required to enable the user get up to speed on building their own apps quickly and easily.
Find the article and samples here....