avwuff/esphome-wiegand

Issues with card values >= 32 bits

Opened this issue · 0 comments

I have a few cards that have 32-bit, 40, 56 and 64-bit card numbers.

  • 32-bit card read is OK, but reports a slightly different number on the sensor (reads 9XXXXXX91 but reports 9XXXXXX76 to HA)
  • 40, 56 & 64-bit card read does not produce any results in the logs

I'm thinking this might be an issue with unsigned long vs unsigned long long, but there may be more to it since your code is set up to read 48-bit codes.

I've been using Arduino code on another board which reads these cards without a hitch, so I know it's not the reader.