- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Pavithra,
Wiced doesn't have curl.
You need to download the tool on your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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