Search found 25 matches

by panda-cat
2025年 Jan 2日 16:06
Forum: 云开发
Topic: 智能锁 临时密码 ticketKey 解密 加密 问题
Replies: 7
Views: 4234

Re: 智能锁 临时密码 ticketKey 解密 加密 问题

测试了下这个流程,使用aes-256-ecb就可以直接使用完整的SECRET_KEY进行解密,不用做任何处理,以下是我测试的代码,可以试试看,解密出来的秘钥也是16位,可以正常用于下一步流程 ヾ(◍°∇°◍)ノ゙。 const crypto = require('crypto'); function decrypt(encryptedText, key) { const secretKey = Buffer.from(key, 'utf-8'); const decipher = crypto.createDecipheriv('aes-256-ecb', secretKey, null); ...
by panda-cat
2024年 Dec 31日 11:06
Forum: 云开发
Topic: 智能锁 临时密码 ticketKey 解密 加密 问题
Replies: 7
Views: 4234

Re: 智能锁 临时密码 ticketKey 解密 加密 问题

accessKey是您项目的Access Secret信息,使用 AccessKey的中间 16 位字符(ACCESS_KEY.substring(8, 24))对数据进行AES解密。

by panda-cat
2024年 Aug 1日 09:47
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 6782

Re: [Message Queue Service] How to receive message when call add home API

Sorry, there is no support for adding devices to the room so far. For specific supported message types, please refer to: https://developer.tuya.com/en/docs/iot/ ... qerli65a1u

by panda-cat
2024年 Jul 31日 13:51
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 6782

Re: [Message Queue Service] How to receive message when call add home API

In the project's "Message Service -> Messaging Rules", you can turn off the "Test Environment", remove the configured test devices, and then enable only the "Production Environment" and subscribe to all the message types you need in it.

by panda-cat
2024年 Jul 31日 09:37
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 6782

Re: [Message Queue Service] How to receive message when call add home API

Since your scenario is not a device-type message, you can only use the production mode for now. In step 1, please use "Production Eviroment" and then subscribe to the "homeCreate" message. To receive messages, please use the server SDK and set the environment to env = MqEnv.PROD....
by panda-cat
2024年 Jul 30日 12:49
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 6782

Re: [Message Queue Service] How to receive message when call add home API

First, you need to subscribe to the "homeCreate" event in the project "Message Service", and then authorize the project with the uid account source app or uid of the home you want to create. For the authorization process, please refer to: https://developer.tuya.com/en/docs/iot/li...
by panda-cat
2024年 Jul 19日 18:28
Forum: Cloud/SaaS Development
Topic: Calculated Sign in PHP sign invalid 1004
Replies: 1
Views: 5721

Re: Calculated Sign in PHP sign invalid 1004

The signature verification scheme in your question is actually the same way of signature verification, but whether access_token is empty or not can only be empty when obtaining the token interface. In addition, I looked at the parameter information of your signature verification, and it should be th...
by panda-cat
2024年 Jul 16日 09:40
Forum: Cloud/SaaS Development
Topic: Call Personal URL
Replies: 8
Views: 7691

Re: Call Personal URL

Please confirm whether the project message subscription has been turned on and the message rule configuration has been completed. In addition, the corresponding test equipment needs to be associated. If the subscription still cannot be normal after confirmation, please send me the project number thr...
by panda-cat
2024年 Jul 8日 18:08
Forum: Developer Platform
Topic: SmartLife devices binding with Tuya OAuth
Replies: 5
Views: 6541

Re: SmartLife devices binding with Tuya OAuth

This feature is not open to "SmartLife" and "TuyaSmart" configurations by default. Please send me your information through "Private messages" and I will submit it to the business for review to see if it can be opened for you. The submitted information includes: Are you ...
by panda-cat
2024年 Jul 8日 09:55
Forum: Developer Platform
Topic: SmartLife devices binding with Tuya OAuth
Replies: 5
Views: 6541

Re: SmartLife devices binding with Tuya OAuth

You can take a look at this newly opened function. After authorizing the device to the project, you can control the device through the interface: https://developer.tuya.com/en/docs/iot/authorization-code-page-usage?id=Kdkyz44dz6a7r. The relevant interface is as follows: https://developer.tuya.com/en...