We are using Particle cloud webhook to exchange data between devices (we use p1) and our backend server. Through Particle cloud console, I could check the data in the 'events" area. Yesterday I noticed some problem on the data being send back from the backend. Looking closely in “events” window, I was surprised to see some problems.
The data we sent from the backend is pretty long, over 2K bytes. I understand there is a max packet size about 512 bytes. So the whole data was separated into 4 packets. Which makes sense.
What I received on the device side was in wrong order (although the device received all data). This is confirmed by the log messages.
I then checked Particle cloud “events” console. And surprisingly I noticed that the data was indeed sent in wrong order. I am attaching 4 pictures here. You may notice that each packet has a packet number from 0 to 3, but in wrong order.
Have any of you noticed such a problem? How would you resolve this issue?