[SOLVED] Error with CURL

Hi all,

I’m having some problems with CURL commands. I’m using a STM32 board and it is working, but when I try to use CURL command just to debug I get an error message like this.

This is the curl command:

curl -X POST -H “Content-Type: application/json” -d ‘[{“variable”: “5b2ea241c03f97330cd91314”, “value”:17.39}]’ http://things.ubidots.com/api/v1.6/collections/values/?token={my-token} -vvv

Could you help me with this, please?

Hello @pslencinas,

As I can note the structure of the curl command is the right one. My recommendation is to verify if the quotes assigned are the right ones.

I just made a test with a variable previously created following the command below, and as you can see is working properly for me:

curl -X POST -H "Content-Type: application/json" -d '[{"variable": "5b43662f642ab62c0708f138", "value":17.39}]' "http://things.ubidots.com/api/v1.6/collections/values/?token=BBFF-xxxxxxxxxxxxxxxxxxxx" -vvv

image

Feel free to take the command as a reference to build your command :smiley:

All the best,
Maria C.