# Tuya IoTOS Embeded Demo WiFi & BLE laser transmitter
[English](./README.md) | [中文](./README_zh.md)
## Introduction
This Demo is based on Tuya Smart Cloud Platform, Tuya Smart App, IoTOS Embeded WiFi &Ble SDK, use Tuya WiFi/WiFi+BLE series modules to quickly set up a laser emitter demo, you can control the laser emission through mobile app.
## Quick start
### Compile and burn-in
+ Download [Tuya IoTOS Embeded WiFi & BLE sdk](https://github.com/tuya/tuya-iotos-embeded-sdk-wifi-ble-bk7231n)
+ Download the demo to the apps directory of the SDK directory
```bash
$ cd apps
$ git clone https://github.com/Tuya-Community/tuya-iotos-embeded-demo-wifi-ble-laser-emit
```
+ Execute the following command in the SDK root directory to start compiling.
```bash
sh build_app.sh apps/bk7231n_laser_demo bk7231n_laser_demo 1.0.0
```
+ Firmware burn-in license information please refer to: [Wi-Fi + BLE series module burn-in license](https://developer.tuya.com/cn/docs/iot/device-development/burn-and-authorization/burn-and-authorize-wifi-ble-modules/burn-and-authorize-wb-series-modules?id=Ka78f4pttsytd)
### File description
```
├── src
| ├── app_driver
| ├── app_soc
| ├── tuya_device.c
| ├── app_laser.c
| └── app_control.c
|
├── include
| ├── app_driver
| ├── app_soc
| ├── tuya_device.h
| ├── app_laser.h
| └── app_control.h
|
└── output
```
<br>
### Application entry
Entry file: tuya_device.c
Important functions: device_init()
+ Call tuya_iot_wf_soc_dev_init_param() interface to initialize the SDK, configure the operating mode, the mating mode, and register various callback functions and store the firmware key and PID.
+ Calling the tuya_iot_reg_get_wf_nw_stat_cb() interface to register the device network status callback functions.
+ Call the application layer initialization function app_laser_init()
<br>
### dp point related
+ Send down dp point data stream: dev_obj_dp_cb() -> deal_dp_proc()
+ Report dp point interface: dev_report_dp_json_async()
| function name | OPERATE_RET dev_report_dp_json_async(IN CONST CHAR_T *dev_id,IN CONST TY_OBJ_DP_S *dp_data,IN CONST UINT_T cnt)|
| ---|--|
| devid | device id (if it is a gateway, MCU, SOC class device then devid = NULL; if it is a sub-device, then devid = sub-device_id)|
| dp_data | dp structure array name|
| cnt | number of elements of the dp structure array|
| return | OPRT_OK: Success Other: Failure |
### I/O List
|Laser module||
| --- | --- |
|`INPUT` P6||
<br>
## Related Documents
Tuya Demo Center: https://developer.tuya.com/demo
<br>
## Technical Support
You can get support for Tuya by using the following methods:
- Developer Center: https://developer.tuya.com
- Help Center: https://support.tuya.com/help
- Technical Support Work Order Center: [https://service.console.tuya.com](https://service.console.tuya.com/)
<br>
没有合适的资源?快使用搜索试试~ 我知道了~
tuya-iotos-embeded-demo-wifi-ble-reed-switch:bk7231n的簧片开关演示

共14个文件
h:6个
c:6个
md:2个


温馨提示
Tuya IoTOS嵌入式演示WiFi和BLE激光发射器 | 介绍 该演示基于Tuya Smart Cloud平台,Tuya Smart App,IoTOS嵌入式WiFi&Ble SDK,使用Tuya WiFi / WiFi + BLE系列模块快速设置激光发射器演示,您可以通过移动应用程序控制激光发射。 快速开始 编译和预烧 下载 将演示下载到SDK目录的apps目录中 $ cd apps $ git clone https://github.com/Tuya-Community/tuya-iotos-embeded-demo-wifi-ble-laser-emit 在SDK根目录中执行以下命令以开始编译。 sh build_app.sh apps/bk7231n_laser_demo bk7231n_laser_demo 1.0.0 固件老化许可证信息,请参阅: 文件描述 ├
资源详情
资源评论
资源推荐
收起资源包目录





















共 14 条
- 1





















世界在你心里
- 粉丝: 38
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 校园综合布线建设项目.doc
- 解读关注网络安全预防网络诈骗贯彻解读课件.pptx
- 项目管理人员薪酬激励研究.doc
- 网络营销培训之整合网络营销合力创造价值.pptx
- 2023年网络工程师考点大全.doc
- 自信心最重要-我连闯9关进微软.docx
- 国家级大创 ESP32智慧药房取药系统-大创资源
- 计算机维修电脑部件组成实训报告.doc
- 远卓中社网创建中国一流的劳动保障服务网络项目建议书.pptx
- vcos_build-智能车资源
- 摇篮网网络推广方案.ppt
- 电子商务法后的电子商务(解读版).ppt
- 医院无线网络方案.doc
- immerse-in-algorithm-蓝桥杯资源
- 嵌入式硬件技术基础复习提纲(10页).doc
- 计算机病毒蠕虫和特洛伊木马介绍网络安全基础课讲义.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论1