摘要
MQTT是一种基于发布/订阅的轻量级消息传输协议,它的出现为Android平台上实现消息推送提供了新的途径.针对Android平台消息推送协议的需求,研究了MQTT协议的结构及消息格式,对比分析了Android平台上其他消息推送方案,设计并实现了一款基于MQTT协议的即时通信应用,完成了登录/注册、即时通信、好友管理等功能.测试结果表明此应用能够满足即时通信应用的基本功能及需求.
MQTT is a lightweight protocol based on publish/subscribe messaging transport. It provides a new way for message push on Android. For the demand of message push protocol on Android, analyzed the structure of MQTT and the format of its message, and compared with other message push solutions on the Android platform. Then, designed and implemented an instant messaging application based on the MQTT protocol. Has finished many functions such as login/register, send instant message, manage friends and so on. Finally, the test result indicated that this application is satisfy the basic functionality and requirements of the instant messaging applications.
出处
《计算机系统应用》
2014年第4期197-200,196,共5页
Computer Systems & Applications
关键词
发布
订阅
即时通信
MQTT
Android
MQTT
publish/subscribe
Android
instant messaging