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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.