feat: add support for extended-data tags with OpenSpool/FilaMan protocol
This commit is contained in:
1 parent
30409a59e0
commit
9456e6ab91
1 file changed
+15
+15
@@ -1350,6 +1350,21 @@ bool decodeNdefAndReturnJson(const byte* encodedMessage, String uidString) {
|
||||
tagProcessed = true;
|
||||
activeSpoolId = "";
|
||||
}
|
||||
else if (doc["protocol"].is<String>() &&
|
||||
(doc["protocol"].as<String>() == "openspool" ||
|
||||
doc["protocol"].as<String>() == "filaman"))
|
||||
{
|
||||
// Tag mit erweitertem Protokoll (OpenSpool/FilaMan) aber ohne sm_id.
|
||||
// FilaMan sucht die Spule anhand der tag_uuid (rfid_uid).
|
||||
String protocolStr = doc["protocol"].as<String>();
|
||||
String type = doc["type"] | "?";
|
||||
String brand = doc["brand"] | "";
|
||||
String displayText = brand.length() > 0 ? (brand + " " + type) : type;
|
||||
Serial.println("Extended-data tag: protocol=" + protocolStr + " type=" + type + " brand=" + brand);
|
||||
activeSpoolId = ""; // Keine sm_id → Gewicht wird mit tag_uuid gesendet
|
||||
oledShowProgressBar(2, 4, tr(STR_SPOOL_TAG), displayText.c_str());
|
||||
oledSetPriority(DISPLAY_PRIORITY_ACTION, 2000);
|
||||
}
|
||||
else
|
||||
{
|
||||
Serial.println("Unbekannter Tag-Inhalt.");
|
||||
|
||||
Reference in new issue
Block a user