Page 1 of 1

mqtt help

Posted: Saturday 22 October 2016 11:18
by edwin1234
cant get mqtt to work
did all the things in the mqtt wiki mosquito is connected in domoticz, i have made a dummy temp device idx 8
but where must i type the line: mosquitto_pub -h localhost -m '{ "idx" : 8, "nvalue" : 0, "svalue" : "25.0" }' -t 'domoticz/in'
when i put the line in cmd i get: unknown option idx as an answer
sorry total noob at this.

thanks
edwin

Re: mqtt help

Posted: Sunday 23 October 2016 8:50
by edwin1234
nobody?

Re: mqtt help

Posted: Friday 28 October 2016 9:00
by edwin1234
Has this something to do with windows 7?

Re: mqtt help

Posted: Tuesday 12 January 2021 12:59
by HarryWilliam
Did you ever get this sorted? I've just started trying to use Domoticz, getting the same problem, and it's a bit disconcerting when you fail at the first hurdle! Installed all on a Win10 PC to test before porting to a Raspberry Pi.
Harry

Re: mqtt help

Posted: Tuesday 12 January 2021 14:30
by FireWizard
Hi,

I'm not that familiar with Windows, but can you check that your MQTT server is running?

If you are using Windows, open up a command prompt and type

Code: Select all

netstat -an
.
If your server is running, you should be able to see the port 1883.

If you cannot go to Task Manager > Services and start/restart the Mosquitto server from there. If you cannot find it here too, your installation of Mosquitto has not been successful.

If needed find a tutorial at: http://www.steves-internet-guide.com/in ... to-broker/

Regards