scapy.contrib.altbeacon

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
build_eir()

Builds a list of EIR messages to wrap this frame.

fields_desc
AltBeacon fields

header

StrFixedLenField

b'\xbe\xac'

id1

UUIDField

None

id2

ShortField

None

id3

ShortField

None

tx_power

SignedByteField

None

mfg_reserved

ByteField

None

magic = b'\xbe\xac'
classmethod magic_check(payload)

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