MCPcopy Create free account
hub / github.com/secdev/scapy / build_set_advertising_data

Method build_set_advertising_data

scapy/layers/bluetooth.py:2993–3003  ·  view source on GitHub ↗

Builds a HCI_Cmd_LE_Set_Advertising_Data containing this frame. This includes the :class:`HCI_Hdr` and :class:`HCI_Command_Hdr` layers. :rtype: scapy.bluetooth.HCI_Hdr

(self)

Source from the content-addressed store, hash-verified

2991 )
2992
2993 def build_set_advertising_data(self):
2994 """Builds a HCI_Cmd_LE_Set_Advertising_Data containing this frame.
2995
2996 This includes the :class:`HCI_Hdr` and :class:`HCI_Command_Hdr` layers.
2997
2998 :rtype: scapy.bluetooth.HCI_Hdr
2999 """
3000
3001 return HCI_Hdr() / HCI_Command_Hdr() / HCI_Cmd_LE_Set_Advertising_Data(
3002 data=self.build_eir()
3003 )
3004
3005
3006###########

Callers

nothing calls this directly

Calls 4

build_eirMethod · 0.95
HCI_HdrClass · 0.85
HCI_Command_HdrClass · 0.85

Tested by

no test coverage detected