Fix jwt-token

This commit is contained in:
2025-09-07 14:44:56 +02:00
parent b28f82d3bc
commit efa67aa7c8

View File

@@ -101,7 +101,7 @@ class SwedishDroneSimulator:
def generate_devices(self, num_devices: int) -> List[DroneDevice]: def generate_devices(self, num_devices: int) -> List[DroneDevice]:
"""Generate drone detection devices at Swedish sensitive locations""" """Generate drone detection devices at Swedish sensitive locations"""
devices = [] devices = []
device_id_base = 1941875380 device_id_base = 1001 # Use simple device IDs starting from 1001
all_locations = [] all_locations = []
for category, locations in SWEDISH_LOCATIONS.items(): for category, locations in SWEDISH_LOCATIONS.items():
@@ -251,7 +251,7 @@ class SwedishDroneSimulator:
payload = { payload = {
"type": "heartbeat", "type": "heartbeat",
"key": f"device_{device.device_id}_key", "key": str(device.device_id), # Use device ID directly as key
"battery_level": device.battery_level, "battery_level": device.battery_level,
"signal_strength": device.signal_strength, "signal_strength": device.signal_strength,
"temperature": device.temperature "temperature": device.temperature