适用于iPhone的MQTT客户端 [英] MQTT client for iPhone

查看:833
本文介绍了适用于iPhone的MQTT客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循此博客来为iPhone构建推送服务.该博客使用Android作为工作平台,但只要我在目标C中拥有一个MQTT客户端,它也可以迁移到iPhone.我在任何地方都找不到.我最接近的是:

I am trying to follow this blog for building push services for iPhone. The blog uses Android as the working platform,but it can be migrated to iPhone too, provided I get an MQTT client in objective C..which I cant find anywhere. The closest I got to this is :

  1. 我有一个C实现此处-libmosquitto

  1. I got a C implementation here - libmosquitto

这篇文章说,我可以使用HTTP桥接之类的东西.

This post says I can use something like an HTTP bridge.

任何人都可以帮助我利用这两个选项吗?我不知道下一步该怎么做:(

Can anyone please help me exploit these two options ? I dont know the next step to take :(

谢谢!!

推荐答案

在这种情况下,HTTP选项将无法为您提供帮助,因为您没有尝试通过MQ与JMS应用程序进行通信(嗯-您尚未说过是您的目标).最好的选择是编译类似libmosquitto或其他MQTT客户端之一的文件(请参见 http://mqtt.org )(适用于iPhone).现在有一个很好的示例 https://github.com/njh/marquette ,该示例在iOS上使用了mosquitto的库

The HTTP option would not help you in this case as you're not trying to talk to a JMS app via MQ (well - you haven't said that is your goal). Your best bet would be to compile something like libmosquitto or one of the other MQTT clients (see list at http://mqtt.org) for the iPhone. There's now a good example https://github.com/njh/marquette which uses mosquitto's libraries on iOS

这篇关于适用于iPhone的MQTT客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆