Skip to content

Commit

Permalink
feat: ability to change mqtt client_id (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakowenko committed Nov 24, 2021
1 parent 68a9032 commit 98d7f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ mqtt:
host:
username:
password:
client_id:

topics:
# mqtt topic for frigate message subscription
Expand Down
1 change: 1 addition & 0 deletions api/src/util/mqtt.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ module.exports.connect = () => {
reconnectPeriod: 10000,
username: MQTT.USERNAME || MQTT.USER,
password: MQTT.PASSWORD || MQTT.PASS,
clientId: MQTT.CLIENT_ID || `double-take-${Math.random().toString(16).substr(2, 8)}`,
});

CLIENT.on('connect', () => {
Expand Down

0 comments on commit 98d7f2a

Please sign in to comment.