feature: workbench pxe #2

Merged
pedro merged 83 commits from pxe into main 2024-09-28 02:19:31 +00:00
Showing only changes of commit f617526c34 - Show all commits

View file

@ -288,8 +288,8 @@ def send_snapshot_to_devicehub(snapshot, token, url):
try: try:
requests.post(url, data=json.dumps(snapshot), headers=headers) requests.post(url, data=json.dumps(snapshot), headers=headers)
print(f"workbench: INFO: Snapshot sent to '{url}'") print(f"workbench: INFO: Snapshot sent to '{url}'")
except: except Exception as e:
print(f"workbench: ERROR: Snapshot not remotely sent. URL '{url}' is unreachable. Do you have internet? Is your server up & running?") print(f"workbench: ERROR: Snapshot not remotely sent. URL '{url}' is unreachable. Do you have internet? Is your server up & running?\n {e}")
def load_config(config_file="settings.ini"): def load_config(config_file="settings.ini"):
""" """