B4J Question Rc522 library

Fabrice La

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

The error in log is
incompatible types: byte[] cannot be converted to byte
What is wrong ?
 

Daestrum

Expert
Licensed User
Longtime User
Is this a rhetorical question ?
You post the problem, then post the solution.
B4X:
Dim sector() As Byte = bc.HexToBytes("DataToHex")
 
Upvote 0

Fabrice La

Active Member
Licensed User
Longtime User
In the library there is :
B4X:
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
Top