Skip to content

alexwishes/mosquittoLibrary_ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

自己封装的MQTT IOS客户端SDK,XCode直接导入编译即可生成.a库

消息格式定义为JSON:

{
	"type": "0",        //消息类型的标记   0: 聊天, 1: ****, 2:****
	"chat": {
		"type": "0",      //聊天类型的标记   0: 文字, 1: 图片, 2:语音
		"from": "ALEXWISHES",    //发送人账号
		"to": "CHAT/GENERAL",   //发送到的主题
		"date": "2018-07-26 14:32:24",    //时间格式
		"msg": "asdfasdfasdf"    //消息内容,如果是图片或者语音消息,这个位置保存URL
	}
}

About

MQTT IOS SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published