You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
dersch81
changed the title
MQTT User/Pass
MQTT User/Pass & Seperated values messages
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?
The text was updated successfully, but these errors were encountered: