Hi Tuya-team,
I am running SDK Get Push Messages by Pulsar (Node.js SDK) : https://developer.tuya.com/en/docs/iot/ ... fmtxp8yscg. to get real-time messages from cloud project and then save it in database
Please let me know, Are the received messages sequential like the api call order?
For example, I follow the steps:
- Step 1: I call api to create new home (home 1)
- Step 2: I call api add room (room 1) into the home 1
Whether the received messages are in the correct order as
- First: homeCreate: Create a home.
- Second: roomCreate: Create a room.
Or in any order
(as sometimes homeCreate -> roomCreate, sometimes roomCreate -> homeCreate)
I want to save message data in the database (home table, room table), so the message order is important.
I insert home first and then insert room based on the existing home_id
Please let me know the answer or solution to get messages in order
Thanks so much