iGenius-Srl / android-mqtt-service

MQTT service for Android
Apache License 2.0
42 stars 24 forks source link

Username/Password Authentification [Question] #5

Closed alexgtn closed 7 years ago

alexgtn commented 7 years ago

Simple question.

A bit confused :) For what purpose does the client provide the username and password? Does the client sign up at first login? Who provides the username and password? Or should I randomly generate 2 strings as the username and password for each client?

krombel commented 7 years ago

The username and the password will be used to connect to the MQTT Broker as the broker might not allow anonymous connections. If you want to connect without providing credentials just pass null for both values