scapy.contrib.altbeacon module

scapy.contrib.altbeacon - AltBeacon Bluetooth LE proximity beacons.

The AltBeacon specification can be found at:

class scapy.contrib.altbeacon.AltBeacon

Bases: scapy.packet.Packet, scapy.layers.bluetooth.LowEnergyBeaconHelper

AltBeacon broadcast frame type.

aliastypes = [<class 'scapy.contrib.altbeacon.AltBeacon'>, <class 'scapy.packet.Packet'>]

Builds a list of EIR messages to wrap this frame.

fields_desc = [<Field (AltBeacon).header>, <Field (AltBeacon).id1>, <Field (AltBeacon).id2>, <Field (AltBeacon).id3>, <Field (AltBeacon).tx_power>, <Field (AltBeacon).mfg_reserved>]
magic = b'\xbe\xac'
classmethod magic_check(payload)

Checks if the given payload is for us (starts with our magic string).