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 User/Pass & Seperated values messages #1

Open
dersch81 opened this issue May 31, 2019 · 0 comments
Open

MQTT User/Pass & Seperated values messages #1

dersch81 opened this issue May 31, 2019 · 0 comments

Comments

@dersch81
Copy link

dersch81 commented May 31, 2019

Hi,

i have a User/Pass protected MQTT Broker. How can pass the credentials with your script?

That's the way i found. Would you use another way?
if status: debug("Success with message (for current readings) <{0}>".format(jsonString)) if not args.dryRun: publish.single(args.topic, jsonString, hostname=args.host, auth={'username':"USER", 'password':"PASS"}) else: debug("Failure with message <{0}>".format(jsonString)) if not args.dryRun: publish.single(args.topicError, jsonString, hostname=args.host, auth={'username':"USER", 'password':"PASS"})

Besides i would like to have the values in seperated messages. Would you help me to change your script in that way?

@dersch81 dersch81 changed the title MQTT User/Pass MQTT User/Pass & Seperated values messages May 31, 2019
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

1 participant