androidbt

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package androidbt adapts Android Bluetooth Classic SPP printer access to the S&D printer interface. Pairing and permissions stay in Kotlin/Java; this Go package only forwards endpoint discovery and ESC/POS bytes.

Index

Constants

View Source
const PrinterName = "Android Bluetooth Printing"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bluetooth

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

func New

func New(bridge Bridge) *Bluetooth

func (*Bluetooth) AvailableEndpoints

func (b *Bluetooth) AvailableEndpoints() (map[string]string, error)

func (*Bluetooth) Description

func (b *Bluetooth) Description() string

func (*Bluetooth) Name

func (b *Bluetooth) Name() string

func (*Bluetooth) Print

func (b *Bluetooth) Print(endpoint string, image image.Image, data []byte) error

type Bridge

type Bridge interface {
	AvailableEndpointsJSON() (string, error)
	Print(endpoint string, data []byte) error
}

Jump to

Keyboard shortcuts

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