Updated report format

This commit is contained in:
Pünkösd Marcell 2021-12-03 00:06:30 +01:00
parent e92b115a42
commit b665fd835d

View File

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