DESIGN AND IMPLEMENTATION OF MESSAGE PUSH SYSTEM BASED ON MQTT PROTOCOL

Yelei Guan, Xiaohui Cheng, Congcong Xia

ABSTRACT: The huge growth has been made in mobile devices and smart terminals represented by Android mobile phones, and the number of users ushered in explosive growth. In order to adapt to the practical application of information acquisition timeliness, power consumption, and network environment and other requirements, the need to push the way to replace the traditional way to pull the message transmission. MQTT is a lightweight based on publish/subscribe messaging protocol, its emergence provides a new way for the realization of message push on Android platform. According to the requirement of Android platform message push protocol, the structure and message format of MQTT protocol are researched. Apache Apollo is used as the message push server, Eclipse PAHO API is used to write the client code and a unified character code is selected to solve the text of different platforms Compatibility problem, a message push system based on MQTT protocol is designed and implemented. The result shows that this system can better meet the basic functions and requirements of message push.

Keywords: MQTT, publish/subscribe, Android, Apache Apollo, Eclipse PAHO