ScanRecordSerializer
object ScanRecordSerializer
Parser serializing scan record to and from bytes.
See also
ScanRecord
(https://cs.android.com/android/platform/superproject/+/master:packages/modules/Bluetooth/framework/java/android/bluetooth/le/ScanRecord.java)
Functions
Link copied to clipboard
Parse scan record bytes to ScanRecord.
Link copied to clipboard
Parse scan record bytes to BleScanRecord.
fun parseToBytes(advertiseFlag: Int, serviceUuids: List<ParcelUuid>?, serviceData: Map<ParcelUuid, DataByteArray>, serviceSolicitationUuids: List<ParcelUuid>, deviceName: String?, txPowerLevel: Int?, manufacturerSpecificData: SparseArray<DataByteArray>): ByteArray
Parse BleScanRecord fields to byte.