Go Down

Topic: How to connect to MQTT from IOS (Read 5567 times) previous topic - next topic

kunila

I tried using a couple of IOS libraries such as MQTT-Client-Framework and MQTTKit to access the Arduino MQTT server but i could not connect to it. These libraries works well with non SSL MQTT servers.I tried bundling gdroot-g2.crt file from godaddy too with no success. Has anybody successfully connected to the server? If so, can you please give me some direction on how to achieve this?

lorenzoromagnoli

You can connect to Arduino Cloud just if you are authenticated and using https connection.

are you using the device_ID and device_psw you get from the cloud platform to connect to Arduino Cloud from IoS?

give a chance to the paho library.

kunila

Hi lorenzoromagnoli,

Thanks for your comments and the reference link. I managed to get connected!  :)


NikeshMangwani

Hi All,

I am iOS APP developer. I am getting error while connecting with MQTT host because of SSL.

This is the Error.
Do i need to convert .crt file in der or cer format


[MQTTSession] mqttTransport didFailWithError Error Domain=kCFErrorDomainCFNetwork Code=1 "(null)"




Jade7272

I've have some major successes in working with Arduino and Raspberry .. after a long and bloody battle with both devices .. there are two good postings homeautomationforgeeks.com good tutorials on working with OpenHAB and Arduino ...As well as google makeuseof OpenHAB ..

I've found using a Mqtt tool like Mqttool is a good way to actually see what's being posted .. I'll upload a working DHT/Mqtt sketch later today ..if you still need some help

Go Up