Git Product home page Git Product logo

tuya_zigbee_sdk's Introduction

tuya-zigbee-sdk开发指南

1. Clone

克隆仓库中的zigbee master分支到本地的文件夹下;

git clone https://github.com/TuyaInc/tuya_zigbee_sdk.git

2. 创建新工程

进入silicon_labs_zigbee/app,进入对应的产品品类下的project路径,复制一份demo工程, 命名为项目对应的文件名称;比如需要创建一个light的工程:

#cd silicon_labs_zigbee/app/light/project/
#cp -r demo/ color_light/
#cd color_light/

3. 编译

3.1 修改所有文件权限

silicon_labs_zigbee主目录下运行:

chmod -R 777 *

3.2 编译

在对应的工程文件夹下运行如下命令即可;编译生成的可执行文件在对应的工程目录的build路径下;

#./run.sh clean   //make clean
#./run.sh build   //make all with release
#./run.sh build 0 //make all with release
#./run.sh build 1 //make all with debug

4. 工程应用框架介绍

工程应用框架如下所示, SDK开发文档参考doc下的《涂鸦ZigBee SDK开发入门文档.docx》

app
├── light
│   ├── common
│   │   ├── include
│   │   └── src
│   └── project
│       ├── demo
├── sensor
│   ├── common
│   │   ├── include
│   │   └── src
│   └── project
│       ├── demo
├── smart_plug
│   ├── common
│   │   ├── include
│   │   └── src
│   └── project
│       ├── demo
└── switch
    ├── common
    │   ├── include
    │   └── src
    └── project
        ├── demo
      

tuya_zigbee_sdk's People

Contributors

tuya-leon avatar

Watchers

James Cloos avatar

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.