{"id":19858296,"url":"https://github.com/tuya/tuya-ios-industry-app-sdk-sample","last_synced_at":"2026-05-11T21:31:31.020Z","repository":{"id":240161313,"uuid":"362754908","full_name":"tuya/tuya-ios-industry-app-sdk-sample","owner":"tuya","description":"This sample provides examples of Tuya Industry App SDK basic functions such as device network configuration, login and registration, and asset management of Tuya Open API.","archived":false,"fork":false,"pushed_at":"2024-12-17T09:13:57.000Z","size":2189,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-01-11T14:24:04.504Z","etag":null,"topics":["tuya"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-29T09:03:17.000Z","updated_at":"2024-05-17T01:32:39.000Z","dependencies_parsed_at":"2024-12-17T10:32:40.655Z","dependency_job_id":null,"html_url":"https://github.com/tuya/tuya-ios-industry-app-sdk-sample","commit_stats":null,"previous_names":["tuya/tuya-ios-industry-app-sdk-sample"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-ios-industry-app-sdk-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-ios-industry-app-sdk-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-ios-industry-app-sdk-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-ios-industry-app-sdk-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuya","download_url":"https://codeload.github.com/tuya/tuya-ios-industry-app-sdk-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241255116,"owners_count":19934815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tuya"],"created_at":"2024-11-12T14:22:46.104Z","updated_at":"2026-05-11T21:31:25.990Z","avatar_url":"https://github.com/tuya.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuya Industry App SDK iOS Sample\n\n## Functional Overview\n\nThis sample provides Tuya Industry App SDK examples of basic functions such as device network configuration, login and registration, and asset management of Tuya Open API.\n\nIndustry App SDK Sample has the following functions:\n\n- User module (login, logout)\n- Asset module (asset query, selection)\n- Equipment distribution module (AP, QRcode mode)\n- Equipment module (equipment query, equipment unbinding)\n\n## API Reference Docs\n\niOS Industry App SDK API Reference: https://tuya.github.io/tuya-ios-iot-app-sdk-sample/\n\n## Prerequisites\n\n1. A developer account is registered on the [Tuya IoT Development Platform](https://auth.tuya.com/register?from=https%3A%2F%2Fdeveloper.tuya.com%2Fcn%2Fdocs%2Fapp-development%2F).\n\n2. Your account identity is verified.\n\n\t![Identity Verification](https://airtake-public-data-1254153901.cos.ap-shanghai.myqcloud.com/content-platform/hestia/163159555453b1793f68b.png)\n\n## Before you start\n\nThis section describes the steps to configure an industry project on top of Cloud Development. For more information, see [Quick Start](https://developer.tuya.com/en/docs/iot/quick-start1?id=K95ztz9u9t89n).\n\n1. Log in to the [Tuya IoT Development Platform](https://iot.tuya.com/).\n\n2. In the left-side navigation bar, choose **Cloud** \u003e **Development**.\n\n3. On the page that appears, click **Create Cloud Project**.\n\n4. In the **Create Cloud Project** dialog box:\n\n\t- Set **Project Name**, **Description**, **Industry**, and **Data Center**.\n\n\t\u003e **Info:**\n\t\u003e\tTuya deploys six data centers globally and provides reliable IoT cloud services for customers worldwide. You can select one or more data centers where your services are deployed. This setting can be changed later.\n\n\t- From the **Development Method** drop-down list, select **Custom**.\n\n\t\t\u003cimg src=\"https://airtake-public-data-1254153901.cos.ap-shanghai.myqcloud.com/content-platform/hestia/16389595613504029df2c.png\" width=\"550\"\u003e\n\n5. Click **Create** to continue with project configuration.\n\n6. On the **Authorize API Services** page, besides the default selections, you need to subscribe to the API products such as **Device Status Notification** and **Industry Project Client Service**, and click **Authorize**.\n\n\t\u003cimg src=\"https://airtake-public-data-1254153901.cos.ap-shanghai.myqcloud.com/content-platform/hestia/16389596785f317e74027.png\" width=\"550\"\u003e\n\n\u003e **Info:**\n\u003e\tBy default, the API services **IoT Core** and **Authorization** are selected.\n\t\n\n7. Click **Authorize**.\n\n8. Enter the asset and account information. Then, the asset will be automatically created and the account will be granted access to the asset. For more information, see [Asset Management](https://developer.tuya.com/en/docs/app-development/iot_app_sdk_core_asset?id=Kaq76kp0ifm74).\n\n\u003e **Info:**\n\u003e\tTuya provides [IoT Core](https://www.tuya.com/vas/tmpl/apply?code=IOT_CORE) that drives your success with industry-specific device connection and management capabilities. This service can quickly integrate with existing systems and boost your development of IoT core applications targeted to different industry scenarios.\n\n\n## Quick Start\n\n### Integrate SDK\nExecute `$ pod update` and the downloaded SDK will be automatically integrated into the iOS project.\n\n### Package name\n- Open the project settings, click **Target** \u003e **General**, and then modify **Bundle Identifier** to the iOS Bundle ID set on the Tuya IoT Platform\n\n### Secret Info\n\u003cimg src=\"https://airtake-public-data-1254153901.cos.ap-shanghai.myqcloud.com/content-platform/hestia/1682247340ea33064cc2d.png\" width=\"650\"/\u003e\n\n### Cloud project Info\nThe user needs the projectCode information when logging in.\n\u003cimg src=\"https://images.tuyacn.com/rms-static/ae4d89e0-11d8-11ef-9eac-b120705c4c0c-1715680780670.png?tyName=smart-industry-link-ios-cloudproject-info-en.png\" width=\"650\" /\u003e\n\n### Authorization in cloud project\nWhen initializing the SDK, you need the Client ID and Client Secret information.\n\u003cimg src=\"https://images.tuyacn.com/rms-static/35886c50-11c4-11ef-8f06-49ae7b2fadcf-1715671988117.png?tyName=52c2d9ad-2aa1-43d9-a054-8e42a352ee1b.png\" width=\"650\"/\u003e\n\n### Initialize the SDK\nObjective-C\n```objc\n// init url\n[IndustryLinkSDK setHost:\u003c#your_app_host#\u003e];\n\n// IndustryLinkSDK\n[IndustryLinkSDK initializeWithAppKey:\u003c#your_app_key#\u003e\n                            appSecret:\u003c#your_app_secret_key#\u003e\n                             clientId:\u003c#your_clientId#\u003e\n                         clientSecret:\u003c#your_client_secret#\u003e];\n\n[MQTTBusinessPlugin initializePlugin];\n```   \nSwift\n```\n// init url\nIndustryLinkSDK.host = \u003c#your_app_host#\u003e\n\n// IndustryLinkSDK\nIndustryLinkSDK.initialize(withAppKey: \u003c#your_app_key#\u003e, \n                            appSecret: \u003c#your_app_secret_key#\u003e, \n                            clientId: \u003c#your_clientId#\u003e, \n                            clientSecret: \u003c#your_client_secret#\u003e)\n\n// If need mqtt\nMQTTBusinessPlugin.initializePlugin()\n```\n\n\u003e **Note**\n\u003e In the Preparation topic, get the `AppKey`, `AppSecret`, `BundleId`, `ClientId` and `ClientSecret` for iOS. Make sure that the values are consistent with those used on the Tuya IoT Platform. Any mismatch will cause the SDK development or demo app to be failed.\n\u003e Please initialize the host using the domain names from the domain.txt file downloaded from the platform.\n\nThe requested host must be consistent with the data center of the cloud project, as the data in different data centers is isolated from one another.\n```\nAY: China Data Center\nEU: Central Europe Data Center\nAZ: Western America Data Center\nWE: Western Europe Data Center\nUE: Eastern America Data Center\nIN: India Data Center\n```\n\n## Notes\nDevelopment version SDK is for testing purposes only, not for commercial use. To use in commercial scenarios, please purchase the formal version SDK on the platform.\n\n**After purchasing the formal version SDK:**\n1. You need to rebuild and download the formal version SDK on the IoT platform.\n2. Reintegrate the formal version SDK into your project.\n\n## Issue Feedback\n\nYou can provide feedback on your issue via **GitHub Issue** or [Ticket](https://service.console.tuya.com).\n\n## License\n\nTuya Industry App SDK Sample is available under the MIT license. Please see the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Ftuya-ios-industry-app-sdk-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuya%2Ftuya-ios-industry-app-sdk-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Ftuya-ios-industry-app-sdk-sample/lists"}