Hi guys, I have two UUID which is `0x1810`, `0x2A3...
# android
k
Hi guys, I have two UUID which is
0x1810
,
0x2A35
. So I am adding value in my btyeArrayof but it giving me error on my side. Please also guide me how can I pass data to scan filters with multiple id.
­čśÂ 4
Copy code
private fun scanFilters() {
        val scanFilterList = mutableListOf<ScanFilter>()
        val serviceUuidMaskString = "FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF"
        val setServiceData = byteArrayOf(
            0x1810, 0x2A35
        )
        val scanFilter = ScanFilter.Builder().setServiceUuid(setServiceData, serviceUuidMaskString).build()
        scanFilterList.add(scanFilter)
    }
Errors
Copy code
The integer literal does not conform to the expected type Byte
on coming this piece of code
Copy code
val setServiceData = byteArrayOf(0x1810, 0x2A35)