返回顶部
B

Bluetooth

Discover, connect, and control Bluetooth devices with automatic profile learning, cross-platform tools, and device management.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
791
下载量
2
收藏
概述
安装方式
版本历史

Bluetooth

## Core Workflow 1. **Scan** — Discover nearby devices 2. **Identify** — Match against known profiles or learn new device 3. **Connect** — Establish link with appropriate protocol 4. **Execute** — Send commands, read data, manage state 5. **Learn** — Update device profile based on interaction success/failure --- ## Quick Reference | Need | Load | |------|------| | CLI commands by platform | `tools.md` | | Device profile management | `profiles.md` | | Security rules and warnings | `security.md` | | Patterns by use case | `use-cases.md` | --- ## Workspace Store device profiles and interaction history: ``` ~/bluetooth/ ├── profiles/ # Known device configs (one file per device) ├── history.md # Interaction log with success/failure └── pending.md # Devices discovered but not profiled ``` --- ## Critical Rules 1. **Never auto-connect** to unknown devices — require explicit user confirmation 2. **Whitelist first** — only interact with pre-authorized devices 3. **Log everything** — every connection attempt, command, result 4. **Fail gracefully** — if device unreachable, retry with backoff, then report 5. **Profile learning** — when something works, save it; when it fails, note why --- ## Platform Detection | OS | Primary Tool | Fallback | |----|--------------|----------| | Linux | `bluetoothctl` | `hcitool`, `gatttool` | | macOS | `blueutil` | `system_profiler`, CoreBluetooth | | Windows | WinRT/PowerShell | `pnputil` for enumeration | | Cross-platform | Bleak (Python) | Noble (Node.js) | --- ## Device Interaction Pattern ``` 1. Check ~/bluetooth/profiles/ for device 2. If known → load profile, use saved commands 3. If unknown → scan characteristics, discover capabilities 4. Execute requested action 5. Verify result (read state, check acknowledgment) 6. Update profile: what worked, what failed, timing ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 bluetooth-1776419958 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 bluetooth-1776419958 技能

通过命令行安装

skillhub install bluetooth-1776419958

下载 Zip 包

⬇ 下载 Bluetooth v1.0.0

文件大小: 8.26 KB | 发布时间: 2026-4-17 19:36

v1.0.0 最新 2026-4-17 19:36
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部