pieuser
Posts: 38
Joined: Sat Jun 03, 2017 7:56 am

Re: Raspberry Pi3

Wed Jul 12, 2017 9:14 am

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.

pieuser
Posts: 38
Joined: Sat Jun 03, 2017 7:56 am

Re: Raspberry Pi3

Wed Jul 12, 2017 10:48 am

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.

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Raspberry Pi3

Wed Jul 12, 2017 11:12 am

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

pieuser
Posts: 38
Joined: Sat Jun 03, 2017 7:56 am

Re: Raspberry Pi3

Fri Jul 14, 2017 5:22 am

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.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspberry Pi3

Fri Jul 14, 2017 5:54 am

this is likely to be my final attempt to help before @pieuser goes on my 'ignore' list...
Done.

pieuser
Posts: 38
Joined: Sat Jun 03, 2017 7:56 am

Re: Raspberry Pi3

Fri Jul 14, 2017 6:09 am

may be this post is not suitable for u thanks for ur previous valuable posts.

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Raspberry Pi3

Fri Jul 14, 2017 5:30 pm

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.

Return to “Beginners”