B4J Question Rc522 library

Fabrice La

Active Member
Licensed User
Longtime User
B4X: Copy
Dim bc as ByteConverter
Dim sector As Byte = bc.HexToBytes("DataToHex")
It is not working as HexToBytes is an array. Must be :
B4X: Copy
 Dim sector() As byte

The error in log is
incompatible types: byte[] cannot be converted to byte
What is wrong ?
 
Is this a rhetorical question ?
You post the problem, then post the solution.
Code: Copy
Dim sector() As Byte = bc.HexToBytes("DataToHex")
 
Upvote 0
In the library there is :
B4X: Copy
result = nfc.Auth_Card_With_KeyA(sector,block,keyA)
Where "sector" is not an byte array nether "block"

I can't declare "sector as byte array" In Auth_Card_With_KeyA "sector is a byte"
 
Upvote 0
Back
Top