ble

package
v0.0.0-...-3d66bd6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultServerOptions = []gatt.Option{
	gatt.LnxMaxConnections(1),
	gatt.LnxDeviceID(-1, true),
	gatt.LnxSetAdvertisingParameters(&cmd.LESetAdvertisingParameters{
		AdvertisingIntervalMin: 0x00f4,
		AdvertisingIntervalMax: 0x00f4,
		AdvertisingChannelMap:  0x7,
	}),
}

DefaultServerOptions :

Functions

func RFKillBluetooth

func RFKillBluetooth() (string, error)

func ResetHCIInterface

func ResetHCIInterface() (string, error)

func StartBLEServer

func StartBLEServer(generatorAdminServer handlers.GrpcServer, channel chan bool, configuration map[string]string) error

func StartBluetoothService

func StartBluetoothService() (string, error)

func StopBLEServer

func StopBLEServer(channel chan bool)

func StopBluetoothService

func StopBluetoothService() (string, error)

func StopHCIInterface

func StopHCIInterface() (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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