At the HCI level, this would be the PeerAddressType flag, which currently is hardcoded as the other detailed parameters.
cmd.LECreateConn{
LEScanInterval: 0x0004, // N x 0.625ms
LEScanWindow: 0x0004, // N x 0.625ms
InitiatorFilterPolicy: 0x00, // white list not used
PeerAddressType: 0x00, // public
PeerAddress: pd.Address, //
OwnAddressType: 0x00, // public
ConnIntervalMin: 0x0006, // N x 0.125ms
ConnIntervalMax: 0x0006, // N x 0.125ms
ConnLatency: 0x0000, //
SupervisionTimeout: 0x000A, // N x 10ms
MinimumCELength: 0x0000, // N x 0.625ms
MaximumCELength: 0x0000, // N x 0.625ms
We need to preserve peer type during the advertisement parsing, so that we know which to be specify when we send the created command.
At the HCI level, this would be the PeerAddressType flag, which currently is hardcoded as the other detailed parameters.
We need to preserve peer type during the advertisement parsing, so that we know which to be specify when we send the created command.