Started correcting the iBeacon data display

This commit is contained in:
Alexandros Schillings
2014-03-11 16:22:29 +00:00
parent 78c04568de
commit cad6427b49
4 changed files with 55 additions and 36 deletions
@@ -31,6 +31,20 @@ public class ByteUtils {
return sb.toString();
}
public static byte[] invertArray(byte[] array){
final int size = array.length;
byte temp;
for (int i = 0; i < size/2; i++)
{
temp = array[i];
array[i] = array[size-1 - i];
array[size-1 - i] = temp;
}
return array;
}
public static int getIntFrom2ByteArray(byte[] input){
final byte[] result = new byte[4];