Say that batch was receive

This commit is contained in:
2025-12-24 14:23:46 +01:00
parent 9f4cab68d9
commit 941326d9d5
3 changed files with 4 additions and 2 deletions

View File

@@ -74,6 +74,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
)
}
log.Println("Got batch!")
w.WriteHeader(http.StatusOK)
w.Write([]byte("ok"))
}

View File

@@ -192,7 +192,7 @@ static void measure_task(void *arg)
count = 0;
}
int jitter = (rand() % 10) - 5; // ±2 ms random
int jitter = rand() % 41; // 0..40 ms
vTaskDelayUntil(&last_wake,
pdMS_TO_TICKS(SAMPLE_PERIOD_MS + jitter));
}

View File

@@ -30,7 +30,7 @@ with open(filepath, "r") as f:
# Plot
plt.figure(figsize=(12, 5))
plt.scatter(timestamps, voltages, marker='o', linestyle='-', s=0.1)
plt.scatter(timestamps, voltages, marker='o', linestyle='-', s=0.2)
plt.xlabel("Time (CET)")
plt.ylabel("Voltage (V)")