Class BLEAdvertParser


  • public class BLEAdvertParser
    extends java.lang.Object
    • Constructor Detail

      • BLEAdvertParser

        public BLEAdvertParser()
    • Method Detail

      • parseScanResponse

        @NonNull
        public static BLEScanResponseData parseScanResponse​(@NonNull
                                                            byte[] raw,
                                                            int offset)
      • extractSegments

        @NonNull
        public static java.util.List<BLEAdvertSegment> extractSegments​(@NonNull
                                                                       byte[] raw,
                                                                       int offset)
      • hex

        @NonNull
        public static java.lang.String hex​(@NonNull
                                           byte[] bytes)
      • binaryString

        @NonNull
        public static java.lang.String binaryString​(@NonNull
                                                    byte[] bytes)
      • subDataBigEndian

        @NonNull
        public static byte[] subDataBigEndian​(@Nullable
                                              byte[] raw,
                                              int offset,
                                              int length)
      • subDataLittleEndian

        @NonNull
        public static byte[] subDataLittleEndian​(@Nullable
                                                 byte[] raw,
                                                 int offset,
                                                 int length)
      • extractTxPower

        @Nullable
        public static java.lang.Integer extractTxPower​(@NonNull
                                                       java.util.List<BLEAdvertSegment> segments)