Search found 10 matches

by Tran Manh Duy
2024年 Aug 22日 19:17
Forum: Developer Platform
Topic: [Message Queue Service] Are receiving messages sent sequentially?
Replies: 2
Views: 1264

[Message Queue Service] Are receiving messages sent sequentially?

Hi Tuya-team, I am running SDK Get Push Messages by Pulsar (Node.js SDK) : https://developer.tuya.com/en/docs/iot/Pulsar-SDK-get-message-nodejs?id=Kawfmtxp8yscg. to get real-time messages from cloud project and then save it in database Please let me know, Are the received messages sequential like th...
by Tran Manh Duy
2024年 Jul 31日 18:06
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 1369

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

I get most of the messages log from the API following your support But with the "Add a device in the room" API, I cannot get the message log I follow the steps: Step 1: Subscribe to all the message types add_product.png Step 2: Call "Add a device in the room" API call_device_api....
by Tran Manh Duy
2024年 Jul 31日 11:09
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 1369

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

Hi panda-cat, With env: TuyaWebsocket.env.TEST => I can only get the device log (online, offline, change status) With env: TuyaWebsocket.env.PROD => I can only get home/room/user message log (create, update, delete ) So, I want to get both the device message log and home/room/user message log in an ...
by Tran Manh Duy
2024年 Jul 30日 19:27
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 1369

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

Hi Tuya team and panda cat I follow the steps: Step 1: Subscribe to the "homeCreate" event in the project "Message Service" add_create_home.png Step 2: Authorize the project with the uid account source app link_app.png Step 3: Call the interface to create a home -> execute API su...
by Tran Manh Duy
2024年 Jul 29日 17:42
Forum: Developer Platform
Topic: [Message Queue Service] How to receive message when call add home API
Replies: 8
Views: 1369

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

I downloaded Get Push Messages by Pulsar (Node.js SDK) : https://developer.tuya.com/en/docs/iot/Pulsar-SDK-get-message-nodejs?id=Kawfmtxp8yscg. To get the device log, device.png I follow the steps: I run SDK When the device status changes (online/offline/change temperature..) => I can get real-time ...
by Tran Manh Duy
2024年 Jun 14日 18:37
Forum: Developer Platform
Topic: Trouble with Tuya API POST request returning code 1004 or sign invalid
Replies: 8
Views: 3365

Re: Trouble with Tuya API POST request returning code 1004 or sign invalid

Thank you very much for supporting me. It worked. I can send the POST method success
And I deleted personal info in the above question

By the way, Could you give me the document or example to create GET, PUT, POST, and DELETE methods to call Tuya API?

by Tran Manh Duy
2024年 Jun 14日 15:43
Forum: Developer Platform
Topic: Trouble with Tuya API POST request returning code 1004 or sign invalid
Replies: 8
Views: 3365

Re: Trouble with Tuya API POST request returning code 1004 or sign invalid

Here is console log. Pls refer to the attach file PS C:\Users\Downloads\nodejs_demo.ts (origin111)\nodejs_demo> npm run test > highway@1.0.0 test > ts-node nodejs_demo.ts Error: error: Error: request api failed: sign invalid at C:\Users\Downloads\nodejs_demo.ts (origin111)\nodejs_demo\nodejs_demo.ts...
by Tran Manh Duy
2024年 Jun 14日 14:24
Forum: Developer Platform
Topic: Trouble with Tuya API POST request returning code 1004 or sign invalid
Replies: 8
Views: 3365

Re: Trouble with Tuya API POST request returning code 1004 or sign invalid

I downloaded a Nodejs example code at:https://developer.tuya.com/en/docs/iot/new-app-singnature?id=Kdnqza5d7iwkc I successfully called GET method But when I call POST method to send command control the device, it throws an error : Error: request api failed: sign invalid This is source code: import *...