Ubidots Community

ESP32 TCP Client

Sending values between 0 and 1 will crash the ESP32 Ubidots client.

Greetings @W6LVP, I hope you are doing great.

I’m lacking information in order to diagnose your problem. Can you please elaborate a bit more?

It would be great to have a code snippet so we can discern about the error source.

Best regards.

ESP32 CPU using Arduino IDE

#include <Ubidots.h>

const char* UBIDOTS_TOKEN = “BBFF-xxxxxxxxxxx”; //my token
const char* DEVICE_LABEL = “weather”; // my device label
Ubidots ubidots(UBIDOTS_TOKEN, UBI_TCP); //using TCP client

int tipCount;
float rainTotal;

rainTotal = tipCount; // rain gauge tipping sensor - each tip is 0.01 inch of rain

rainTotal = rainTotal / 100; // convert tip count to inches

ubidots.add(ID5, rainTotal );

For this example and others that I have tried using the same setup, the ESP32 will crash (restarts) anytime uploaded value is greater than zero and less than one, i.e zero and one work with all values in between crashing the ESP32.

Greetings @W6LVP,

Can you please try using this branch from our repo?

Please let us know if this solved your issue.
Best regards.

-Juan David

This version does not solve the problem. Same results.

Greetings @W6LVP , I hope you are doing great.

I’m regret to learn that you’re still encountering the issue.
We understand the impact this issue may be having on your project.

The library is under constant development and is not intended to be a final product, said so there isn’t a tentative date for a fix for this issue, however, your feedback is highly appreciated and will be considered.

In the meantime, we recommend exploring possible workarounds or alternative methods to manage this issue. We understand that this is not the ideal solution and appreciate your understanding and flexibility in this matter.

Best regards.