Giter Club home page Giter Club logo

tuya-connect-kit-for-mqtt-embedded-c's People

Contributors

0x1abin avatar flyingcys avatar max190113 avatar mhtcc520 avatar peiqi-xu avatar rootming avatar shiliu-yang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tuya-connect-kit-for-mqtt-embedded-c's Issues

deference mqtt context pointer to get sizeof ?

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));

我该使用哪一个sdk.选择什么授权码

我计划将esp32接入涂鸦.
官方文档介绍了许多接入方式.

Tuya MQTT协议接入
IoT Core SDK(C)
Tuya Connect Kit
TuyaLink
TuyaOS Link SDK

请问当前主要维护哪些方式呢. 麻烦推荐一个,给个文档.

并且不同的方式创建产品,所使用的授权码也不一样. 应该使用什么方式创建设备?
授权码-通用版 和 设备接入授权码 . 这2个有什么区别,该使用哪一个呢

mqtt connect err: Connection not authorized(11)

连接服务器出现错误mqtt connect err: Connection not authorized(11)
检查了Product ID, Device UUID, Device Secret都应该没错。

请问还可以检查哪些地方调查这个问题?

Received only 20 bytes

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.

Unable to run switch_demo

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?

debuglog.txt

MQTT NOT_AUTHORIZED test logical error

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;
        }

fatal error: 'qrencode.h' file not found

the code don't have this file.

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.

怎么移植到esp32

怎么移植到esp32,能否提供demo,手动移植了一直显示tls连接失败

BLE CRC error

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?

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.