//go:build 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("Windows BLE 暂不支持,蓝牙功能已禁用 (winrt-go 缺少 enumeration 包)") return &Client{ deviceName: deviceName, modeChan: make(chan string, 10), stopChan: make(chan struct{}), } } func (c *Client) SetMode(mode string) { logDebug("BLE SetMode 被调用但 Windows 暂不支持: %s", mode) } func (c *Client) Close() { close(c.stopChan) } var ErrUnsupported = fmt.Errorf("Windows BLE 暂不支持")