docs(readme): 初始化 SDK 示例补齐所有默认值注释行(对齐 iOS)

之前只列了 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) <noreply@anthropic.com>
This commit is contained in:
km2023
2026-05-20 16:28:41 +08:00
parent 00a17fbd6a
commit f7e1a4769f

View File

@@ -97,10 +97,14 @@ dependencies {
val sdk = DuooomiBleSDK( val sdk = DuooomiBleSDK(
context = this, context = this,
config = DuooomiBleConfig( config = DuooomiBleConfig(
apiKey = "YOUR_API_KEY", apiKey = "YOUR_API_KEY", // 必填Loomart x-api-key
brand = "YOUR_BRAND", // 设备品牌名所有 RPC 必带 brand = "YOUR_BRAND", // 必填,设备品牌名所有 RPC 必带 x-owner header
scanNamePrefix = "Duooomi-" // 扫描时按广播名前缀过滤 scanNamePrefix = "蓝牙广播名前缀" // 必填,大小写不敏感
// logLevel = BleLogLevel.OFF // 日志等级,默认 OFF完全静默排查时改 DEBUG // 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
) )
) )
``` ```