From f7e1a4769ff80e173d3a92a37c26383b67768440 Mon Sep 17 00:00:00 2001 From: km2023 Date: Wed, 20 May 2026 16:28:41 +0800 Subject: [PATCH] =?UTF-8?q?docs(readme):=20=E5=88=9D=E5=A7=8B=E5=8C=96=20S?= =?UTF-8?q?DK=20=E7=A4=BA=E4=BE=8B=E8=A1=A5=E9=BD=90=E6=89=80=E6=9C=89?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E6=B3=A8=E9=87=8A=E8=A1=8C=EF=BC=88?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=20iOS=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前只列了 3 个必填 + logLevel,apiHost / cdnHost / ani* / frameIntervalMs 四组默认值的注释行漏了,与 iOS README 不对齐。补齐 + 把 brand / scanNamePrefix 措辞改成与 iOS 一致("必填,Loomart x-api-key" / "设备品牌名(所有 RPC 必带 x-owner header)" / "大小写不敏感")。 Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c73dea6..11b07e8 100644 --- a/README.md +++ b/README.md @@ -97,10 +97,14 @@ dependencies { val sdk = DuooomiBleSDK( context = this, config = DuooomiBleConfig( - apiKey = "YOUR_API_KEY", - brand = "YOUR_BRAND", // 设备品牌名,所有 RPC 必带 - scanNamePrefix = "Duooomi-" // 扫描时按广播名前缀过滤 - // logLevel = BleLogLevel.OFF // 日志等级,默认 OFF(完全静默),排查时改 DEBUG + apiKey = "YOUR_API_KEY", // 必填,Loomart x-api-key + brand = "YOUR_BRAND", // 必填,设备品牌名(所有 RPC 必带 x-owner header) + scanNamePrefix = "蓝牙广播名前缀" // 必填,大小写不敏感 + // apiHost = "https://api.duooomi.com", // 默认 + // cdnHost = "https://cdn.bowong.cc/", // 默认 + // aniWidth = 360, aniHeight = 360, aniFps = "24", // ANI 转换默认参数 + // frameIntervalMs = 35, // 协议帧间隔(ms),合法 [0,500],越界 warn 后 clamp + // logLevel = BleLogLevel.OFF, // 日志等级,默认 OFF(完全静默),排查时改 DEBUG ) ) ```