Struct rubble::beacon::Beacon [−][src]
pub struct Beacon { /* fields omitted */ }
Expand description
A BLE beacon.
FIXME: This has to randomly offset the broadcast interval
Implementations
Creates a new beacon that will broadcast a packet on all advertisement channels.
Parameters
addr
: Address of the beacon device.data
: Data to broadcast. This must fit within a single PDU.
Errors
If data
doesn’t fit in a single PDU, an error will be returned.
Broadcasts the beacon data using tx
.
This will broadcast once on every advertising channel.