[SOLVED] Sending context data using new UbidotsMicroESP8266 library

Hi,
I love using Ubidots due to the simplicity and great widgets. Few days earlier i downloaded the new UbidotsMicroESP8266 library for NODEMCU. I was able to send multiple data (5 variables) successfully using the sendTLATE function provided in the library.
Library Link: UbidotsMicroESP8266

It uploads the data in less than 20 seconds while usually if you are sending data using HTTP it takes about more than 80 seconds for me. I want to save battery so sendTLATE function works great. But i am not able to send context data (String) using this sendTLATE function. Can someone please explain me how this function is working as there is no documentation of this in Ubidots API? Also how to send context data using sendTLATE function with an example?
I have added the snapshot of both the function and it’s response.

@AlphaPi Yeah the example is like this:


add("Temperature", value, "lat=1.2323$lng=423.12331");
sendAll(true);

The context is the third arg in add function, you need to put it like this “context=value_context$context_two=value_context_two”

Best regards,
Metavix

1 Like

@Metavix Thank you!! The library is great for uploading data to ubidots using sendTLATE function. But it takes a lot of time about three times more than that of sendTLATE function if we send data using sendHTTP function why is this so? How sendTLATE function is sending data can you explain please?

@AlphaPi with sendTLATE function the library send all data in a package that is smaller than the all data of HTTP because we send the values and name without HTTP headers.
This is slow because two function in sendTLATE and HTTP, i will remove that and it will be faster.
By the way you can send me a screenshot with a ping to Ubidots?

Best regards,
Metavix