Go to advanced search

by kingofthenorth
Fri Jan 26, 2018 6:17 am
Forum: Automation, sensing and robotics
Topic: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT
Replies: 66
Views: 34908

Re: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT

Thanks for the feedback everyone! It's been very helpful. I'm still not able to receive the message from the Pi. I'm obviously missing something. Here's a little test app I have in place. RPi: import paho.mqtt.client as MQTT def connectionStatus(client, userdata, flag, rc): print("Connecting...") m...
by kingofthenorth
Thu Jan 25, 2018 7:19 pm
Forum: Automation, sensing and robotics
Topic: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT
Replies: 66
Views: 34908

Re: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT

Great guide, congratulations! I will ask something "idiot"...I see the ip to make a communication. So, can I use, for example, 10 iphones into the same server (raspberry pi) ? Att; Francklin Souza Are you asking if 10 iPhones can publish to the same MQTT server? If so, yes I believe so. As long as ...
by kingofthenorth
Thu Jan 25, 2018 7:02 pm
Forum: Automation, sensing and robotics
Topic: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT
Replies: 66
Views: 34908

Re: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT

Great guide, congratulations! I will ask something "idiot"...I see the ip to make a communication. So, can I use, for example, 10 iphones into the same server (raspberry pi) ? Att; Francklin Souza Are you asking if 10 iPhones can publish to the same MQTT server? If so, yes I believe so. As long as ...
by kingofthenorth
Thu Jan 25, 2018 6:59 pm
Forum: Automation, sensing and robotics
Topic: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT
Replies: 66
Views: 34908

Re: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT

So you have to make the Raspberry Pi publish to a topic that the iOS device is subscribed to, and then send the appropriate message like "filedone" or something like that. In iOS, you would have a function that receives messages, decodes it and does a string comparison. So if message == "filedone",...
by kingofthenorth
Thu Jan 25, 2018 4:56 pm
Forum: Automation, sensing and robotics
Topic: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT
Replies: 66
Views: 34908

Re: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT

Hey, Thanks for the great tutorial. I just had a few issues I wanted to verify. After i wrote make in the mosquitto terminal, I got so many warnings. Mainly : ../lib/tls_mosq.c:130:5: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] data = ASN1_STRING_data(nval->d.dNSName); ^~~...
by kingofthenorth
Fri Jan 19, 2018 8:53 pm
Forum: Automation, sensing and robotics
Topic: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT
Replies: 66
Views: 34908

Re: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT

Great tutorial!

Is there a way to send a response back to the iOS app when something has completed (i.e. send response when an upload is finished to update a progress bar?)

Thanks for the effort in making this.

Go to advanced search