Skip to content

Commit

Permalink
Revert "Prepare How-To Guide documentation page for performing an OTA…
Browse files Browse the repository at this point in the history
… update via the Update Manager (eclipse-kanto#264)"

This reverts commit 5c7dd67.
  • Loading branch information
k-gostev committed Sep 1, 2023
1 parent 152d53e commit e280e5c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 401 deletions.
2 changes: 1 addition & 1 deletion quickstart/hono_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def on_message(self, event):
print('[got response]')
response = json.loads(event.message.body)
print(json.dumps(response, indent=2))
if 200 <= response["status"] <= 299:
if response["status"] == 204:
print('[ok]', command)
else:
print('[error]')
Expand Down
237 changes: 0 additions & 237 deletions quickstart/hono_commands_um.py

This file was deleted.

18 changes: 5 additions & 13 deletions quickstart/hono_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,16 @@ def on_start(self, event):
print('[connected]')

def on_message(self, event):
print('[event received]')
if event.message.body is not None:
body = json.loads(event.message.body)
if topic_filter != "" and topic_filter != body['topic']:
return
print('[event received]')
print(json.dumps(body, indent=2))
print(json.dumps(json.loads(event.message.body), indent=2))
else:
print('[empty event received]')
print('<empty>')


# Parse command line args
options, reminder = getopt.getopt(sys.argv[1:], 't:f:')
opts_dict = dict(options)
tenant_id = os.environ.get("TENANT") or opts_dict['-t']
if '-f' in opts_dict:
topic_filter = opts_dict['-f']
else:
topic_filter = ""
options, reminder = getopt.getopt(sys.argv[1:], 't:')
tenant_id = os.environ.get("TENANT") or dict(options)['-t']

uri = 'amqps://hono.eclipseprojects.io:15671'
address = 'event/{}'.format(tenant_id)
Expand Down
3 changes: 1 addition & 2 deletions web/site/content/docs/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ container-management.service \
software-update.service \
file-upload.service \
file-backup.service \
system-metrics.service \
kanto-update-manager.service
system-metrics.service
```

All listed services must be in an active running state.
Expand Down
Loading

0 comments on commit e280e5c

Please sign in to comment.