Fix jwt-token
This commit is contained in:
@@ -80,11 +80,11 @@ def send_detection(drone_type=2, drone_id=None, geo_lat=0, geo_lon=0, rssi=-45,
|
||||
# Create detection packet matching your original format
|
||||
packet = {
|
||||
"device_id": DEVICE_ID,
|
||||
"geo_lat": geo_lat,
|
||||
"geo_lon": geo_lon,
|
||||
"geo_lat": float(geo_lat),
|
||||
"geo_lon": float(geo_lon),
|
||||
"device_timestamp": int(time.time()),
|
||||
"drone_type": drone_type,
|
||||
"rssi": rssi,
|
||||
"rssi": float(rssi),
|
||||
"freq": freq,
|
||||
"drone_id": drone_id
|
||||
}
|
||||
@@ -236,7 +236,7 @@ def main():
|
||||
else:
|
||||
print(f"\n🚁 Single Detection Test")
|
||||
print("-" * 30)
|
||||
send_detection(
|
||||
success = send_detection(
|
||||
drone_type=args.drone_type,
|
||||
drone_id=args.drone_id,
|
||||
geo_lat=args.lat,
|
||||
|
||||
Reference in New Issue
Block a user