Remove deprecated HTML files and scripts, refactor API to support asynchronous requests, and improve WebSocket handling for scale actions.

This commit is contained in:
Manuel Weiser committed 2026-02-19 17:00:21 +01:00
1 parent 823d1f8c7e
commit 13a0acf2ac
20 files changed
+260 -2147

No files matched your search

+7 -9
View File
@@ -124,7 +124,7 @@ void loop() {
// Periodic FilaMan heartbeat
if (intervalElapsed(currentMillis, lastFilamanHeartbeatTime, FILAMAN_HEARTBEAT_INTERVAL))
{
sendHeartbeat();
sendHeartbeatAsync();
}
// If scale is not calibrated, only show a warning
@@ -190,10 +190,9 @@ void loop() {
// Get UID from nfcJsonData or similar (nfc.cpp should set it)
// For now, use activeSpoolId if available
int sId = activeSpoolId.toInt();
if (sendWeight(sId, activeTagUuid, weight)) {
weightSend = 1;
Serial.println("Weight sent to FilaMan");
}
sendWeightAsync(sId, activeTagUuid, weight);
weightSend = 1;
Serial.println("Weight queued for FilaMan");
}
// Handle successful tag write
@@ -201,10 +200,9 @@ void loop() {
{
tagProcessed = true;
int sId = activeSpoolId.toInt();
if (sendWeight(sId, activeTagUuid, weight)) {
weightSend = 1;
Serial.println("Weight sent to FilaMan after tag write");
}
sendWeightAsync(sId, activeTagUuid, weight);
weightSend = 1;
Serial.println("Weight queued for FilaMan after tag write");
}
}