Refactor WebSocket handling: add NFC data sending to clients and improve connection logging; adjust task priority for better scheduling

This commit is contained in:
Manuel Weiser committed 2026-02-19 17:16:07 +01:00
1 parent 13a0acf2ac
commit ad145c7d7a
3 files changed
+25 -6

No files matched your search

+3 -2
View File
@@ -216,8 +216,9 @@ void sendLocationAsync(int spoolId, String spoolTagUuid, int locationId, String
bool initFilaman() {
loadFilamanConfig();
queueMutex = xSemaphoreCreateMutex();
// Reduce stack size to 6k and set priority to 0 (lowest) to prevent starving WiFi stack
xTaskCreatePinnedToCore(filamanApiTask, "FilaManApi", 6144, NULL, 0, NULL, 0);
// Move to Core 1 (Hardware Core) to free up Core 0 for WiFi/Webserver
// Set priority to 1 (same as Scale/NFC) to ensure fair scheduling
xTaskCreatePinnedToCore(filamanApiTask, "FilaManApi", 6144, NULL, 1, NULL, 1);
if (checkFilamanRegistration()) sendHeartbeatAsync();
return true;
}