mirror of
https://github.com/tugsi/Filaman.git
synced 2026-11-12 18:50:38 +01:00
fix: correct payload type check in NFC write event handling
This commit is contained in:
1 parent
d9ae829503
commit
f1489e75cc
1 file changed
+1
-1
+1
-1
@@ -96,7 +96,7 @@ void onWsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventTyp
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (doc["type"] == "writeNfcTag") {
|
else if (doc["type"] == "writeNfcTag") {
|
||||||
if (doc["payload"].is<String>()) {
|
if (doc["payload"].is<JsonObject>()) {
|
||||||
// Versuche NFC-Daten zu schreiben
|
// Versuche NFC-Daten zu schreiben
|
||||||
String payloadString;
|
String payloadString;
|
||||||
serializeJson(doc["payload"], payloadString);
|
serializeJson(doc["payload"], payloadString);
|
||||||
|
|||||||
Reference in new issue
Block a user