ble

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const VictronManufacturerId = 0x2e1

Variables

This section is empty.

Functions

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blocksize int) []byte

Types

type BleStruct

type BleStruct struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) (*BleStruct, error)

func (*BleStruct) Name

func (ble *BleStruct) Name() string

func (*BleStruct) Shutdown

func (ble *BleStruct) Shutdown()

type Config

type Config interface {
	Name() string
	LogDebug() bool
	Devices() []DeviceConfig
}

type DeviceConfig

type DeviceConfig interface {
	Name() string
	MacAddress() []byte
	EncryptionKey() []byte
}

Jump to

Keyboard shortcuts

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