Skip to content

Commit a8212a8

Browse files
committed
ignore not-decryptable payloads in find
1 parent 4209359 commit a8212a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,11 @@ class TuyaDevice extends EventEmitter {
10251025
debug('UDP data:');
10261026
debug(dataRes);
10271027

1028+
if (typeof dataRes.payload === 'string') {
1029+
debug('Received string payload. Ignoring.');
1030+
return;
1031+
}
1032+
10281033
const thisID = dataRes.payload.gwId;
10291034
const thisIP = dataRes.payload.ip;
10301035

0 commit comments

Comments
 (0)