智能家居_涂鸦Demo

一、OEM App

1、定价

更多App详细权限介绍及定价可查看:Tuya 开发者平台 OEM App 计划

OEM App 基础版 OEM App 高级版
定价 ¥33500/年 ¥67000/年

2、产品创建

涂鸦 oem app 创建

二、SDK App

iOS swift https://github.com/tuya/tuya-home-ios-sdk-sample-swift

必备

1、Multicast 权限

Multicast 权限 申请页面 中按照 Multicast 权限 申请教程 进行申请。

填写项 填写示例 注意事项
App Name 为 Wi-Fi 快连配网(EZ 配网)功能申请应用权限 -
Apple Store URL 例如,智能生活的 Apple ID of App 为 1115101477,所以链接为 https://apps.apple.com/app/id1115101477 该 URL 需要您拼接,格式为 https://apps.apple.com/app/id[Apple ID of App]。
Apple ID of App(非必填) 为 Wi-Fi 快连配网(EZ 配网)功能申请应用权限 -
App Category 为 Wi-Fi 快连配网(EZ 配网)功能申请应用权限 -
Describe the main purpose of your app 用于家居场景,提供设备配网、设备控制、固件升级、自动化等。 请勿直接使用右侧文案,根据您 App 的应用场景做一定调整。
Explain why your app needs to send multicast or broadcast traffic, or browse for all Bonjour service types. 我们的 App 需要和我们的硬件设备进行通信,由于 IP 地址和端口不固定,使用自定义的广播组播协议进行通信,使用 UDP 6666、6667,TCP 6668 端口。例如,需要将设备信息注册到云端的场景。App 发送包含经过加密的 UDP 广播包或者组播包。设备 Wi-Fi 芯片在接收到该 UDP 包后,通过特定的 UDP 组织形式就可以解密出信息,接着设备进行 Wi-Fi 配置后即可上网连接云端。 请勿直接使用右侧文案,建议在描述上做一些调整,但必须包含 UDP 6666、6667,TCP 6668 端口 这些内容。

Thank you for your submission.

We’ll review your request and contact you soon with a status update.

Request ID: HZ5RT74G99

三、数据格式

创建新家

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"result" : {
"id" : 164328460,
"role" : 2,
"lon" : 0,
"rooms" : [
{
"displayOrder" : 1,
"id" : 77716018,
"ownerId" : "240039697",
"status" : true,
"name" : "",
"uid" : "ay1776863768994ELVYe"
}
],
"gid" : 240039697,
"background" : "",
"admin" : true,
"displayOrder" : 1,
"groupUserId" : 176321183,
"lat" : 0,
"geoName" : "Xiamen",
"homeMode" : 0,
"dealStatus" : 2,
"groupId" : 240039697,
"managementStatus" : true,
"name" : "Xiamen"
},
"success" : true,
"status" : "ok",
"t" : 1776864297431
}

常见问题

1
2
3
4
5
https://github.com/tuya/tuya-home-ios-sdk-sample-swift 最新的 feat: Release SDK 7.5 demo 无法编译

缺少 thing_custom_config.json
且出现如下错误
Bridging header dependency scanning failure: /Users/qian/Project/Tuya/tuya-home-ios-sdk-sample-swift/TuyaAppSDKSample-iOS-Swift/TuyaAppSDKSample-iOS-Swift-Bridging-Header.h:13:9: fatal error: 'ThingSmartBusinessExtensionKit/ThingSmartBusinessExtensionKit.h' file not found

AI答:

  1. 确保 thing_custom_config.json 文件已正确配置并放置在工程中,参考 框架接入

  2. 确认 Podfile 中包含 ThingSmartBusinessExtensionKit 依赖项,执行 pod install 并检查模块安装是否成功 。

  3. 验证 Bridging-Header.h 文件中是否正确引入头文件,参考:

    1
    2
    #import <ThingSmartBusinessExtensionKit/ThingSmartBusinessExtensionKit.h>
    ``` 。
  4. 检查 Xcode 项目设置中的 Framework Search PathsHeader Search Paths 是否包含 SDK 安装路径 。

  5. 清理项目并重新编译,必要时清除 Xcode 和 CocoaPods 缓存 。

【提示:AI自动生成,仅供参考】

答案来源请参考:迁移指南

答案来源请参考:快速集成

答案来源请参考:iOS SDK 使用过程中遇到模块无法找到的问题如何解决?

End