打印

在Apple上面对MQTT框架的选择

在Apple上面对MQTT框架的选择

建议用MQTT原生的OC或Swift的iOS库
注意:如果是用C或包装库之类的则只能通过WiFi进行连接!!!
If you are trying to use MQTT for an iOS application I will highly recommend you to use a native (Objective-C/Swift) iOS library. Using C or wrapper libraries usually means you are using POSIX networking calls at some point. Apple forbids the use of third party networking libraries from using the mobile internet antenna. Thus if you use Paho or something similar, you can only use MQTT when you are connected to a WiFi network.
https://github.com/relayr/apple-mqtt-example

那么从文档的分类来分析
原生的OC则用 MQTT-Client : https://github.com/ckrey/MQTT-Client-Framework
简单就是美!
我的Java:http://www.Java2Class.net

TOP