Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Disconnect ¶
func SetProvider ¶
func SetProvider(p Provider)
Types ¶
type Provider ¶
type Provider interface {
RequestDevice(filters map[string]any) (*BLEDevice, error)
Connect(deviceID string) error
Disconnect(deviceID string) error
Read(deviceID, service, characteristic string) ([]byte, error)
Write(deviceID, service, characteristic string, data []byte) error
}
Provider is a native BLE backend. On mobile the shell registers one via SetProvider (android.bluetooth.le / CoreBluetooth). On desktop there is no built-in stack; Chromium-based webviews expose Web Bluetooth as a fallback.
Click to show internal directories.
Click to hide internal directories.