Updated report format

This commit is contained in:
Pünkösd Marcell 2021-12-03 00:06:30 +01:00
parent e92b115a42
commit b665fd835d
1 changed files with 1 additions and 2 deletions

View File

@ -77,7 +77,6 @@ def mqtt_on_command(client, userdata, message):
def do_report(): def do_report():
report = { report = {
"client": config.DEVICE_ID, "client": config.DEVICE_ID,
"cloud": config.API_URL,
"measurements": { "measurements": {
"queue": BirbnetesIoTPlatformRecordDriver.get_queue_length() "queue": BirbnetesIoTPlatformRecordDriver.get_queue_length()
} }
@ -89,7 +88,7 @@ def do_report():
r.raise_for_status() r.raise_for_status()
if r.status_code != 201: if r.status_code != 201:
print(config.REPORT_URL, "Wrong response") print(config.REPORT_URL, "Wrong response:", r.status_code)
def main() -> None: def main() -> None: