Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Publishing multiple messages continuously to the server(Publishing multiple messages continuously to the server)
Publishing multiple messages continuously to the server [message #1708996] Wed, 23 September 2015 08:15 Go to next message
nila rajesh is currently offline nila rajeshFriend
Messages: 2
Registered: September 2015
Junior Member
I am using MQTT client for publishing multiple messages and files to the server .The publisher should run continuously taking the differnet files from the local directory and should publish to the server. My qn is ,

How to publish multiple messages/files with a single client.

Should I need to start the publisher in asynchronous mode.

if so what call_back function should be called inside the publisher main().

Kindly advice
icon4.gif  mosquitto brokker accepting any username and password [message #1734590 is a reply to message #1708996] Thu, 09 June 2016 15:19 Go to previous message
jinto simon is currently offline jinto simonFriend
Messages: 1
Registered: June 2016
Junior Member

I have downloaded the source code of mosquitto from
i have done
in mosquittox.x.x.x directory
modified the mosquitto.config file allow_anonymous false

in mosquittox.x.x.x/src directory
created the passwordfile using command
./mosquitto_passwd -c passwordfile username password

then running the mosquitto_sub and mosquitto_pub with any username and password its gets connected with the broker.

What to do so that it connects with the broker with correct username and password???

Previous Topic:Mosquitto on linux server(GoDaddy,HostGator)
Next Topic:When reconnect, Broker using "Bridge(in) connection" doesn't send messages.
Goto Forum:

Current Time: Wed Dec 02 22:42:06 GMT 2020

Powered by FUDForum. Page generated in 0.01975 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top