ble

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init the BLE stack using the default hci0 Bluetooth interface

func SendAirDropBeacon

func SendAirDropBeacon(appleAccount account.AppleAccount) error

SendAirDropBeacon makes your device discoverable for AirDrop sending requests using BLE

func Shutdown

func Shutdown() error

func StartScan

func StartScan(onBeaconReceive chan AirDropBeacon) error

StartScan searches for AirDrop beacons from other AirDrop senders

Types

type AirDropBeacon

type AirDropBeacon struct {
	DeviceMac         string
	RSSI              int16
	ReceivedTimestamp time.Time
}

AirDropBeacon contains information about the BLE advertising from a sender. It shows that some is open for receiving requests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL