I've repeated the test on both plateform several time at different time. I always get the same issue.
My first analysis would say that the issue is linked to curl on platform b. But the error I receive is not a curl error, but a particle cloud internal timeout error. Which should be independant from the calling plateform.
The function is putting received strings in a buffer for later processing (other functions in main loop). I haven't add any issue with this function since months. And what puzzle me is that, I'm calling the same function on the same particle (electron fw 6.0.0) from different source. my assumptions are the followings:
1)The particle device should not be the source of the problem (it seems) as it is able to correctly process all commands on plateform a
The plateform b send the exact same set of commands and receive a response from particle cloud from all of them (including timeouts), therefore, it seems to me the issue is in between the device and my servers... but how to troubleshoot that?
sever a is an OSX laptop
server b is a linux Debian wheezy
You are right, the forum post stripped some of the sample code I've put in, here is the correct version: