tuya / tuya-connect-kit-for-mqtt-embedded-c Goto Github PK
View Code? Open in Web Editor NEWProvide core capabilities like device connection, uplink and downlink communication and OTA across platforms and operating systems.
License: MIT License
Provide core capabilities like device connection, uplink and downlink communication and OTA across platforms and operating systems.
License: MIT License
https://smartapp.tuya.com/s/p?p={}&uuid={}&v=2.0
compiler suggests this:
middleware/mqtt_client_wrapper.c:98:30: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memset(context, 0, sizeof(context));
I think it's correct, should be:
mqtt_client_context_t* context = (mqtt_client_context_t*)client;
MQTTStatus_t mqtt_status;
/* Clean memory */
memset(context, 0, sizeof(*context));
我计划将esp32接入涂鸦.
官方文档介绍了许多接入方式.
Tuya MQTT协议接入
IoT Core SDK(C)
Tuya Connect Kit
TuyaLink
TuyaOS Link SDK
请问当前主要维护哪些方式呢. 麻烦推荐一个,给个文档.
并且不同的方式创建产品,所使用的授权码也不一样. 应该使用什么方式创建设备?
授权码-通用版 和 设备接入授权码 . 这2个有什么区别,该使用哪一个呢
连接服务器出现错误mqtt connect err: Connection not authorized(11)
检查了Product ID, Device UUID, Device Secret都应该没错。
请问还可以检查哪些地方调查这个问题?
Right now I am porting code to ESP32 but there is one problem with Wifi provisioning that device is receiving data which is 20 bytes only. From code it looks like we should receive more.
Hi Tuya team,
I have some problem of using the demo. It's said that "MQTT connection failed: 3", more detail about this error can be found in the attached file.
Could you please give me a detail instruction on how to run the demo?
compiler seems correct in saying this is an error:
middleware/mqtt_client_wrapper.c:188:40: error: comparison between 'enum mqtt_client_status' and 'MQTTStatus_t' {aka 'enum MQTTStatus'} [-Werror=enum-compare]
if (MQTT_STATUS_NOT_AUTHORIZED != mqtt_status) {
return MQTT_STATUS_NOT_AUTHORIZED;
}
I think it should be:
if (MQTTServerRefused == mqtt_status) {
return MQTT_STATUS_NOT_AUTHORIZED;
}
tuya-iot-link-sdk-embedded-c/examples/tuya_ota_demo/qrencode_print.c:4:10: fatal error: 'qrencode.h' file not found
#include "qrencode.h"
^~~~~~~~~~~~
1 error generated.
Does anyone know where the tutorial documentation is?Help me, please!
我看教程里是由docs文档目录的,怎么这里没有呢,求解答
怎么移植到esp32,能否提供demo,手动移植了一直显示tls连接失败
Hi, Im in the process of porting bluetooth to esp32, my device is detected by the tuya app, currently it stops at crc after receiving the first frame. For example, the frame I received: 0x00.0x31.0x40.0x01.0xA4.0x62.0xD5.0x33.0x09.0x56.0xC4.0xF5.0x1B,0xBB,0x3C,0xF7.0xBB,0xEA,
0x38.0x86.0x32.0xF8.0x94.0x84.0xCF,0xDA,0x1F,0x3C,0x5B,0xF3,0x33.0x16.0xEF,0x9F,0xA5,0xD5,
0x24.0xBE,0x0B,0x8F,0x20.0x9C,0x06.0xA3.0xCD,0x47.0xCB,0xD1.0x1A,0xA7.0x26.0x47
Each time is 52 bytes.
I get an error: 00:00:17 ERROR tuya_ble_service.c:467: receive data crc16 check fail
00:00:17 ERROR tuya_ble_service.c:791: ret:-1
Is anyone able to help me?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.