Giter Club home page Giter Club logo

Comments (7)

shiliu-yang avatar shiliu-yang commented on June 1, 2024 1

In my case, the problem was with endianness in the tuya_cloud_types.h file. Im swapping the bit order in the "UNI_" macros.

You need to configure the -DLITTLE_ENDIAN=1 or -DLITTLE_ENDIAN=0 compile option depending on your chip platform at compile time.

https://github.com/tuya/tuya-connect-kit-for-mqtt-embedded-c/blob/642ead7acef194ab53c6784c8045211394fe6177/CMakeLists.txt#L20C35-L20C35

Or you can define it yourself in the code

from tuya-connect-kit-for-mqtt-embedded-c.

xmow49 avatar xmow49 commented on June 1, 2024

Im in the process of porting bluetooth to esp32

Hi, do you have published your code? I'm also interested in the BLE on the ESP32.
Can I have the beginning of your code to test and maybe improve it ?
Thanks

from tuya-connect-kit-for-mqtt-embedded-c.

shiliu-yang avatar shiliu-yang commented on June 1, 2024

For tuya Wifi provisioning for esp32, you can refer to this: #107 (comment)

from tuya-connect-kit-for-mqtt-embedded-c.

DamianJeu avatar DamianJeu commented on June 1, 2024

In my case, the problem was with endianness in the tuya_cloud_types.h file. Im swapping the bit order in the "UNI_" macros.

from tuya-connect-kit-for-mqtt-embedded-c.

DamianJeu avatar DamianJeu commented on June 1, 2024

In my case, the problem was with endianness in the tuya_cloud_types.h file. Im swapping the bit order in the "UNI_" macros.

You need to configure the -DLITTLE_ENDIAN=1 or -DLITTLE_ENDIAN=0 compile option depending on your chip platform at compile time.

https://github.com/tuya/tuya-connect-kit-for-mqtt-embedded-c/blob/642ead7acef194ab53c6784c8045211394fe6177/CMakeLists.txt#L20C35-L20C35

Or you can define it yourself in the code

I created my own definition in code, but your solution i think is more universal

from tuya-connect-kit-for-mqtt-embedded-c.

toyokomi avatar toyokomi commented on June 1, 2024

Hello @shiliu-yang thank you for your code. Right now I have problem because after receiving data there is information that CRC16 has failed. I am not sure but I am using UUID different that you have in your implementation. ESP32 is little endian by default so there is no need to change it. How can I get UUID for device? I think there is a problem so CRC16 is failing. From Tuya knowledge base there is difference between device ID and UUID. I am using Tuyalink based solution.

from tuya-connect-kit-for-mqtt-embedded-c.

DamianJeu avatar DamianJeu commented on June 1, 2024

If you use tuyalink it wont work. This solution is for tuyaOS, then in hardware development you need to use linkSDK (tuya website).
if u want use tuyaLink -> https://github.com/tuya/tuya-iot-core-sdk

from tuya-connect-kit-for-mqtt-embedded-c.

Related Issues (12)

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.