Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello cypress developer team,

i am trying to send the data to cloud using ubdots.

I have used ubidots c sdk.  and i didnt get the curl.h file in the wiced studio.

can anyone help on this?

Thanks in advance.

Regards

Pavithra

0 Likes
4 Replies
PriyaM_16
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hello Pavithra,

Wiced doesn't have curl.

You need to download the tool on your own.

Anonymous
Not applicable

Hello Pavithra,

As it is mentioned in Ubidots C Library at GitHub - ubidots/ubidots-c: C API client for Ubidots, depends on "libjansson" and "libcurl". Currently WICED hasn't ported these libraries in SDK releases. However, you can port them to WICED for your use.

0 Likes
Anonymous
Not applicable

Hello,

Thanks for your reply,

how to port libcurl and libjansson file?

WICED team will port these libraries else any one can port these libraries?

if that is the case, how can we port those libraries?

help me on this.

Thanks in advance.

Regards,

Pavithra

0 Likes
Anonymous
Not applicable

Hi,

Another way to send data to Ubidots is by HTTP Post method. HTTP_client protocol is available in WICED at <wiced sdk>/43xxx_Wi-Fi/libraries/protocols/HTTP_client.

Example application that can help you is available at <wiced sdk>/43xxx_Wi-Fi/apps/snip/https_client. You need to build a proper POST request as shown in the example below,

  String data = "{\"value\":"+ value + "}";
  String thisLength = String(data.length());

  // Build HTTP POST request
  POST /api/v1.6/variables/<VARIABLEID>/values?token=<TOKEN>HTTP/1.1
  Content-Type: application/json
  "Content-Length: " + thisLength
  Host:things.ubidots.com

  "\n"+data

0 Likes