I want to append two bytes to one byte using VB.NET
This is my code,
Dim bytes(5) As Byte
bytes(0) = devid 'variable byte
bytes(1) = &H3
bytes(2) = x1 'variable byte
bytes(3) = x2 'variable byte
bytes(4) = &H0
bytes(5) = &H1
Dim bytescrc() As Byte = CRC(bytes) ' call to crc funtion and store 2 bytes output is { &HFF, &HB5 }
Dim bytesful() As Byte = {bytes, bytescrc}
Error msg is Value of type 'Byte()' cannot be converted to 'Byte'.
How to append bytes 6 byte array and bytescrc 2 byte array to bytesful byte array.