Documentation
¶
Overview ¶
Package workerclient starts the shared native Bluetooth worker process and adapts it to ble.Connector and ble.Link. The worker owns the radio; this side owns its lifetime, so a hung or crashed worker never outlives the link.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector starts one worker process per connection.
func NewConnector ¶
NewConnector returns a worker-backed connector.
func (*Connector) Connect ¶
Connect starts the worker, checks its protocol version and asks it to find and connect the Bluetooth device. Any failure stops the worker again.