Commit 2306c2e9 authored by Holger Brand's avatar Holger Brand
Browse files

Merge branch 'release/Release-1-0-0-1' into main

parents a3bcf903 59d4587a
......@@ -89,7 +89,7 @@ def publish_all(client):
rc, mid = client.publish(topic_status,0)
logging.debug('Publishing: ' + topic_status + ' returned rc=' + str(rc) + 'mid=' + str(mid))
#version
rc, mid = client.publish(topic_version,'1.0.0.0')
rc, mid = client.publish(topic_version,'1.0.0.1')
logging.debug('Publishing: ' + topic_version + ' returned rc=' + str(rc) + 'mid=' + str(mid))
#command
rc, mid = client.publish(topic_command,'Write your command here.')
......@@ -368,11 +368,13 @@ if __name__ == '__main__':
epilog = 'Copyright 2021 GSI Helmholtzzentrum für Schwerionenforschung GmbH',\
prog = 'MQTT-SQLite-Logger'\
)
parser.add_argument('-b', '--broker', dest='broker', default='localhost')
parser.add_argument('--debug', dest='debug_level', default=logging.INFO)
parser.add_argument('-d', '--database', dest='database_filename', default='MQTT-SQLite.sqlite')
parser.add_argument('-l', '--log', dest='log_filename', default='MQTT-SQLite-Logger.log')
parser.add_argument('-t', '--topics', dest='topics_filename', default='MQTT-Topics.json')
args = parser.parse_args()
broker = args.broker
logging.basicConfig(
filename='MQTT-SQLite-Logger.log', filemode='w+',
level=args.debug_level,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment