Skip to content

Commit

Permalink
Update presearch-discovery.py
Browse files Browse the repository at this point in the history
  • Loading branch information
byackee authored Jan 16, 2024
1 parent 13f45dd commit 4ea9225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions presearch-discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
username = 'mqtt'
password = 'xxxxxx'
############### MODIFY VARIABLE END################


token = sys.argv[1]
def connect_mqtt():
def on_connect(client, userdata, flags, rc):
if rc == 0:
Expand Down Expand Up @@ -76,4 +77,4 @@ def run():


if __name__ == '__main__':
run()
run()

0 comments on commit 4ea9225

Please sign in to comment.