blemesh

package module
v0.0.0-...-449c15c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Unlicense Imports: 16 Imported by: 0

README

blemesh

This package allows Linux devices to connect to Pinecone mesh networks over BLE.

Documentation

Index

Constants

View Source
const (
	SOL_L2CAP         = 6
	L2CAP_LM          = 3
	L2CAP_LM_CENTRAL  = 1
	L2CAP_LM_RELIABLE = 16
)

Variables

This section is empty.

Functions

func ListenBLE

func ListenBLE(svcUUID, psmUUID string, pubkey []byte) (net.Listener, error)

ListenBLE creates a net.Listener that attempts to connect to pinecone-like BLE networks with the given service and PSM UUID. The pubkey parameter is added to the announcement and compared with discovered devices' announced pubkey to determine which should connect to the other, as done by the Matrix P2P app.

func UseLogger

func UseLogger(logger *logrus.Logger)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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