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:
12
README.md
12
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
|
||||
)
|
||||
)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user