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

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

问题描述

我正在尝试关注此 博客 以构建适用于 iPhone 的推送服务.该博客使用 Android 作为工作平台,但它也可以迁移到 iPhone,前提是我在目标 C 中获得了一个 MQTT 客户端,我在任何地方都找不到.我最接近的是:

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. 我在这里 - 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天全站免登陆