Fix jwt-token
This commit is contained in:
@@ -64,16 +64,8 @@ class DeviceProbeSimulator:
|
||||
|
||||
try:
|
||||
payload = {
|
||||
'device_id': device_id,
|
||||
'timestamp': int(time.time()),
|
||||
'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
|
||||
}
|
||||
'type': 'heartbeat',
|
||||
'key': device['unique_key'] # Use the device's unique key
|
||||
}
|
||||
|
||||
response = self.session.post(
|
||||
|
||||
Reference in New Issue
Block a user