Fabrice La Active Member Licensed User Longtime User Feb 10, 2020 #1 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 Click to expand... What is wrong ?
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 Click to expand... What is wrong ?
Daestrum Expert Licensed User Longtime User Feb 10, 2020 #2 Is this a rhetorical question ? You post the problem, then post the solution. B4X: Dim sector() As Byte = bc.HexToBytes("DataToHex") Upvote 0
Is this a rhetorical question ? You post the problem, then post the solution. B4X: Dim sector() As Byte = bc.HexToBytes("DataToHex")
Fabrice La Active Member Licensed User Longtime User Feb 10, 2020 #3 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
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"
Erel B4X founder Staff member Licensed User Longtime User Feb 10, 2020 #4 B4X: Dim s As Byte = sector(0) '? Upvote 0
Fabrice La Active Member Licensed User Longtime User Feb 10, 2020 #5 Yes could be, i will test it Upvote 0