Changes

no edit summary
Line 1,848: Line 1,848:  
| 0x0 || 0x1 || FilterId
 
| 0x0 || 0x1 || FilterId
 
|-
 
|-
| 0x1 || 0x1 || Size of CondData. Only used with CondType Manu.
+
| 0x1 || 0x1 || CondDataSize. Only used with CondType Manu.
 
|-
 
|-
 
| 0x2 || 0x1 || CondType
 
| 0x2 || 0x1 || CondType
Line 1,856: Line 1,856:  
| 0x20 || 0x1D || Mask. Only used with CondType Manu. +0 = u16 CompanyIdMask, then {pattern mask}.
 
| 0x20 || 0x1D || Mask. Only used with CondType Manu. +0 = u16 CompanyIdMask, then {pattern mask}.
 
|-
 
|-
| 0x3D || 0x1 || Size of Mask. Only used with CondType Manu.
+
| 0x3D || 0x1 || MaskSize. Only used with CondType Manu.
 
|}
 
|}
   Line 1,877: Line 1,877:  
= BleAdvertisePacketParameter =
 
= BleAdvertisePacketParameter =
 
This is "nn::bluetooth::BleAdvertisePacketParameter". This is a 8-byte struct with 1-byte alignment.
 
This is "nn::bluetooth::BleAdvertisePacketParameter". This is a 8-byte struct with 1-byte alignment.
 +
 +
[[BTM_services#StartBleScanForGeneral|StartBleScanForGeneral]] generates a [[#BleAdvertiseFilter]] from this. CondType = Manu, CondDataSize = 0xA. CondData: +0 = u16 CompanyId, u8 +2 = 0x1, +3 = {data copied from PatternData, then an u8 with value 0x0}. MaskSize = 0x9, Mask = {all 0xFF}.
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x2 || CompanyId
 +
|-
 +
| 0x2 || 0x6 || PatternData
 +
|}
    
= BleScanResult =
 
= BleScanResult =