xantares / nfc-bindings

scripting language bindings for libnfc
BSD 3-Clause "New" or "Revised" License
23 stars 9 forks source link

[Question] emulate tag #12

Closed JHuenerberg closed 5 years ago

JHuenerberg commented 5 years ago

Hi @xantares,

I want to emulate a tag and configure the attributes for the tag by hand. I'm getting a type error when I try to set abtUid et cetera.

nt.nti.nai.abtUid = bytearray([0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04])

Gives a argument 2 of type 'uint8_t [10]' error. When I try to pass a uint8 array still crashes np.arange(10, dtype=np.uint8)

Thank you very much in advance for your answer!

xantares commented 5 years ago

abtUid wasnt listed in the possible input fields with uint8_t_static_in_helper, see 3611530, you can add more when you need, patches welcome.