Fix jwt-token

This commit is contained in:
2025-08-19 19:14:49 +02:00
parent 88e2260e98
commit 8d9a3478fe

View File

@@ -64,16 +64,8 @@ class DeviceProbeSimulator:
try: try:
payload = { payload = {
'device_id': device_id, 'type': 'heartbeat',
'timestamp': int(time.time()), 'key': device['unique_key'] # Use the device's unique key
'status': 'online',
'system_info': {
'cpu_usage': random.randint(20, 80),
'memory_usage': random.randint(30, 90),
'disk_usage': random.randint(40, 85),
'temperature': random.randint(25, 65),
'uptime': random.randint(3600, 86400) # 1 hour to 1 day
}
} }
response = self.session.post( response = self.session.post(