B4X FEED Best way to get data packets from multiple systems

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Best way to get data packets from multiple systems است. این موضوع تا کنون 64 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Best way to get data packets from multiple systems
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
64
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
I have a lxClv with a list of systems. I loop through that list and for each item in that list I send a "status" command. The system in return sends the status packet back to the tablet. The problem is it sends the next status command way to quick for the system to respond before it sends the status command for the next system. It seems the first response is still processing when the next status packet arrives so it never gets it. I can send the stats command individually all day long. I am using the Network library, a send socket on port 10001 and a receive socket on port 10002 along with the Received_PacketArrived sub. Is there a way to pause the iteration through the xClv until the responding packet is received or a way to queue the responses before processing to make that sub quicker? What is the best way to handle this?

 

عقب
بالا