Page 2 of 2

Re: Raspberry Pi3

Posted: Wed Jul 12, 2017 9:14 am
by pieuser
thanks a lot everybody for ur valuable information as a beginner in pi i think this may be help me a lot in my projects.

Re: Raspberry Pi3

Posted: Wed Jul 12, 2017 10:48 am
by pieuser
first of all thanks for ur all valuable comments. i try to install mqtt in raspbian , it successfully installed but connection refuses whenever i try to connect it through this comand
mosquitto_sub -d -u username -P password -t dev/test
Error: Connection refused

how to solve the issue.

Re: Raspberry Pi3

Posted: Wed Jul 12, 2017 11:12 am
by DirkS
pieuser wrote:first of all thanks for ur all valuable comments. i try to install mqtt in raspbian , it successfully installed but connection refuses whenever i try to connect it through this comand
mosquitto_sub -d -u username -P password -t dev/test
Error: Connection refused

how to solve the issue.
You should start a new topic

Re: Raspberry Pi3

Posted: Fri Jul 14, 2017 5:22 am
by pieuser
i have installed geany in raspbian and its working fine. but when i try to install mqtt mosquito its successfully installed but its not connecting in server to client and vice versa. is raspbian is not sufficient for mqtt and iot.

Re: Raspberry Pi3

Posted: Fri Jul 14, 2017 5:54 am
by B.Goode
this is likely to be my final attempt to help before @pieuser goes on my 'ignore' list...
Done.

Re: Raspberry Pi3

Posted: Fri Jul 14, 2017 6:09 am
by pieuser
may be this post is not suitable for u thanks for ur previous valuable posts.

Re: Raspberry Pi3

Posted: Fri Jul 14, 2017 5:30 pm
by DirkS
pieuser wrote:first of all thanks for ur all valuable comments. i try to install mqtt in raspbian , it successfully installed but connection refuses whenever i try to connect it through this comand
mosquitto_sub -d -u username -P password -t dev/test
Error: Connection refused

how to solve the issue.
As already mentioned you should really create a new topic. It will increase your chances of getting a helpful answer.
But I'll give you a hint: you probably don't need the username and password. And did you want to publish or subscribe?
To subscribe:

Code: Select all

mosquitto_sub -d -t dev/test
This will only work if you're running it on the computer that runs the mosquitto daemon. If that's on a different computer you will have to use the -h parameter (https://mosquitto.org/man/mosquitto_sub-1.html)

Test this and if you have problems start a new topic describing in detail the problems you are seeing.