scapy.contrib.altbeacon module

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

The AltBeacon specification can be found at: https://github.com/AltBeacon/spec

class scapy.contrib.altbeacon.AltBeacon

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

AltBeacon broadcast frame type.

https://github.com/AltBeacon/spec

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

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).