fix: 24hr restart schedule enchanced.
Step 0: Pause polling Step 1: Stop measurement → wait 10s Step 2: Disable FTP → wait 10s Step 3: Enable FTP → wait 10s Step 4: Download data Step 5: Wait 30s for device to settle Step 6: Start new measurement Step 7: Re-enable polling
This commit is contained in:
@@ -657,8 +657,9 @@ async def stop_cycle(unit_id: str, payload: StopCyclePayload = None, db: Session
|
||||
return {"status": "ok", "unit_id": unit_id, **result}
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Stop cycle failed for {unit_id}: {e}")
|
||||
raise HTTPException(status_code=502, detail=str(e))
|
||||
error_msg = str(e) if str(e) else f"{type(e).__name__}: No details available"
|
||||
logger.error(f"Stop cycle failed for {unit_id}: {error_msg}")
|
||||
raise HTTPException(status_code=502, detail=error_msg)
|
||||
|
||||
|
||||
@router.post("/{unit_id}/store")
|
||||
|
||||
Reference in New Issue
Block a user