From 1b7a71b6171fa04f1ec20840deb10a469a920429 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sun, 15 Mar 2026 21:00:07 +0100 Subject: [PATCH] fix: rename tag_uuid to rfid_uid in sendWeight and sendRfidResult functions --- src/api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.cpp b/src/api.cpp index 70c9f5b..05444a1 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -110,7 +110,7 @@ bool sendWeight(int spoolId, String tagUuid, float measuredWeight) { // For Bambu tags (spoolId == 0), only send tag_uuid if (spoolId > 0) doc["spool_id"] = spoolId; // Always add tag_uuid if available (this is what we want for Bambu tags) - if (tagUuid.length() > 0) doc["tag_uuid"] = tagUuid; + if (tagUuid.length() > 0) doc["rfid_uid"] = tagUuid; doc["measured_weight_g"] = measuredWeight; String payload; serializeJson(doc, payload); @@ -172,7 +172,7 @@ bool sendRfidResult(String tagUuid, int spoolId, int locationId, bool success, S JsonDocument doc; doc["success"] = success; - if (tagUuid.length() > 0) doc["tag_uuid"] = tagUuid; + if (tagUuid.length() > 0) doc["rfid_uid"] = tagUuid; if (spoolId > 0) doc["spool_id"] = spoolId; if (locationId > 0) doc["location_id"] = locationId; if (errorMessage.length() > 0) doc["error_message"] = errorMessage;