Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mqtt broker #5

Open
c-r-s opened this issue May 14, 2021 · 3 comments
Open

Mqtt broker #5

c-r-s opened this issue May 14, 2021 · 3 comments

Comments

@c-r-s
Copy link

c-r-s commented May 14, 2021

Hello apologies this isn’t a issue just a question.

Is the away to connect to a Mqtt broker that requires a user name and password if so how would I do this?

really sorry for the basic question but am trying to get this project to work and order the parts and can’t they this bit to work

@Mottramlabs
Copy link
Owner

Hi
The library I used was PubSubClient, see https://pubsubclient.knolleary.net/ for API details.
It looks like it would be easy to do what you need.
David

@c-r-s
Copy link
Author

c-r-s commented May 14, 2021

Thanks so much I will do some research and see if I can learn what is required.

@raptordemon
Copy link

in mqtt_fuctions (line 71) change if (client.connect(MAC_array)) {

to

if (client.connect(MAC_array,"MQTTUSER","MQTTPass")) {

and change MQTTUSER and MQTTPass to your Mqtt user name and password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants