Fix jwt-token
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user