Updated report format
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user