On 12 October 2015 at 14:52:48, Azade Rahmati (
rahmat...@gmail.com) wrote:
> Now I check your recommended link
http://www.rabbitmq.com/access-control.html
> but I can't find out this thing, that , when I want to connect Mqtt
> to broker, should android client post this particular user pass
> to broker? because i use WMQTT i only use this code to connect mqttClient.connect(generateClientId(),
> cleanStart, keepAliveSeconds); and I dont't know how send user
> pass
Yes, you need to create a user, give it access to the vhost used by MQTT ("/" by default)
and configure the client to use that user.
However exactly that's done in WMQTT, I don't know. It should be something straightforward,
please take a look at the API of that library.