Comments (7)
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.
Or you can define it yourself in the code
from tuya-connect-kit-for-mqtt-embedded-c.
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.
For tuya Wifi provisioning for esp32, you can refer to this: #107 (comment)
from tuya-connect-kit-for-mqtt-embedded-c.
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.
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.
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.
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.
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)
- I can't find the "docs"
- 怎么移植到esp32 HOT 2
- mqtt connect err: Connection not authorized(11) HOT 1
- Received only 20 bytes HOT 15
- esp32编译出现很多错误
- deference mqtt context pointer to get sizeof ? HOT 1
- MQTT NOT_AUTHORIZED test logical error HOT 1
- fatal error: 'qrencode.h' file not found
- URL can not generate a static QR code HOT 1
- Unable to run switch_demo HOT 11
- 为什么没有docs文档呢 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuya-connect-kit-for-mqtt-embedded-c.