Hello Ubidots,
I am working on a program that has a very high speed event loop but needs to upload data to Ubidots over TCP. The default uploading with TCP on a Particle device is a synchronus operation, and as a result it causes a delay, (usually 5 seconds). This delay is not ideal for our operation.
Particle recently shared on their forum a new subclass that adds asyncConnect() methods, which allows the TCP connection to run on a separate thread of the device.
GitHub of the new methods
https://github.com/rickkas7/asynctcpclient14
I would like to investigate what it would take to update the Ubidots library to have it upload using the asyncConnect() methods.
I also would like to understand if there are barriers that may keep this from being possible.
Thanks!
Adam