//go:build !linux && !windows package ble import "fmt" type Client struct { deviceName string modeChan chan string stopChan chan struct{} connected bool currentMode string } func New(deviceName string) *Client { logWarn("BLE 不支持当前平台,蓝牙功能已禁用") return &Client{ deviceName: deviceName, modeChan: make(chan string, 10), stopChan: make(chan struct{}), } } func (c *Client) SetMode(mode string) { logDebug("BLE SetMode 被调用但平台不支持: %s", mode) } func (c *Client) Close() { close(c.stopChan) } var ErrUnsupported = fmt.Errorf("BLE 不支持当前平台")