TuyaSmartDemo

Tuya Smart iOS Home SDK

Showing:

Popularity

Downloads/wk

0

GitHub Stars

44

Maintenance

Last Commit

1yr ago

Contributors

12

Package

Dependencies

0

License

MIT

Categories

Readme

Tuya Smart iOS SDK

中文版 | English


Features Overview

Tuya Smart iOS Home SDK is the iOS 9.0 and above version provided by Tuya for the field of smart home. iOS developers can quickly develop app functions based on SDK, realize the activation of intelligent hardware, hardware control, firmware upgrades, timed tasks, intelligent scenarios and other operations.

The SDK includes the following features:

  • Account system (phone number, email registration, login, password reset and other general account functions)
  • Home system (home management, room management, home sharing and other functions)
  • Hardware functions (network configuration, control, status reporting, timed tasks, groups, firmware upgrades, sharing)

Fast Integration

Using CocoaPods integration (version 9.0 or above is supported)

Add the following content in file Podfile:

platform :ios, '9.0'

target 'your_target_name' do

      pod "TuyaSmartHomeKit"

end

Execute command pod update in the project's root directory to begin integration.

For the instructions of CocoaPods, please refer to: CocoaPods Guides

Initializing SDK

  1. Open project setting, Target => General, edit Bundle Identifier to the value from Tuya develop center.
  2. Import security image to the project and rename as t_s.bmp, then add it into Project Setting => Target => Build Phases => Copy Bundle Resources.
  3. Add the following to the project file PrefixHeader.pch
#import <TuyaSmartHomeKit/TuyaSmartKit.h>

Open file AppDelegate.m,and use the App ID and App Secret obtained from the development platform in the [AppDelegate application:didFinishLaunchingWithOptions:]method to initialize SDK:

[[TuyaSmartSDK sharedInstance] startWithAppKey:<#your_app_key#> secretKey:<#your_secret_key#>];

Now all the preparatory work has been completed. You can set out to develop your application.

Doc

Refer to details: Tuya Smart Doc - iOS SDK

ChangeLog

CHANGELOG.md

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100