Announcement

Collapse
No announcement yet.

API mode and Unsigned long

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    API mode and Unsigned long

    Hi ALL

    I've got a weigand card reader working on a Nano and want to send the keyfob ID to Homeseer.

    Key is in decimal and is 7 numbers long ie: 1234567

    I've tried:

    unsigned long key;

    key = (wg.getcode()); this gets the value of the key using the weigand library, I can print this to the serial console to verify, that works.

    Now I want to send key as a "long", appears I cant simply send
    SendToHS(1,key)

    Could anyone please give some insight as to best way to send the long number.

    Thanks..Pete
    HS 2.2.0.11
Working...
X