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