Git Product home page Git Product logo

tuya-commerciallighting-sdk-ios's Introduction

Tuya Smart Commercial Lighting SDK

Pod version Platform info Support

English | 中文版


Overview

Tuya Commercial Lighting App SDK for iOS is dedicated to commercial lighting development solutions on iOS. It helps you quickly implement app functionality suitable for commercial lighting and scene linkage. With your app, users can manage projects, areas, and devices

The SDK includes the following functions:

  • Users
    • Log in and register
    • User accounts registered with mobile phone numbers or email addresses
    • Change passwords and sign out of accounts
    • Update user information, such as nicknames
  • Projects
    • Create, update, modify, and query projects
    • Get project details
    • Create, edit, and delete outdoor projects
  • Areas
    • Add, query, modify, and delete areas
    • Control area groups
    • Get a list of areas of a project and a list of sub-areas of a specific area
    • Dynamically configure area levels
    • Get a list of devices that belong to a specific area
  • Groups
    • Create, query, edit, and delete groups
    • Control groups
  • Energy statistics
    • Energy consumption dashboard
  • Device maintenance
    • Maintenance request
    • Query maintenance reports
    • Query device alerts

Efficient integration

Use CocoaPods integration (version 1.10.1 or later is supported)

Add the following content in the file Podfile:

platform :ios, '10.0'

target 'your_target_name' do

      pod "TuyaSmartCommercialLightingSdk"

end

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

For more information about CocoaPods, see CocoaPods Guides.

Initialize the SDK

  1. Open the project to apply the setting, Target => General, and set Bundle Identifier to the value from the Tuya developer center.
  2. Import a security image to the project, rename it as t_s.bmp, and then add it to Project Setting => Target => Build Phases => Copy Bundle Resources.
  3. Add the following content to the project file PrefixHeader.pch
#import <TuyaSmartCommercialLightingSdk/TuyaSmartCommercialLightingSdk.h>
  1. Open the file AppDelegate.m,and use the App ID and App Secret that are obtained from the development platform in the [AppDelegate application:didFinishLaunchingWithOptions:] method to initialize the SDK:
[[TuyaSmartSDK sharedInstance] startWithAppKey:<#your_app_key#> secretKey:<#your_secret_key#>];

All the preparation steps are finished. You can use the SDK to develop your application.

References

For more information, see:

Changelog

Change Log

Support

You can get support from Tuya Smart by using the following methods:

Tuya Smart Help Center: https://support.tuya.com/en/help

Technical Support Console: https://service.console.tuya.com

License

This Tuya Smart Commercial Lighting SDK Sample is licensed under the MIT License.

tuya-commerciallighting-sdk-ios's People

Contributors

bawn avatar xiaoxuan-tuya avatar

Watchers

 avatar

Forkers

wenmingyan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.