Looking to use HTTP Post to carriots platform

Wireless communications in Waspmote, topologies, node types...
libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Looking to use HTTP Post to carriots platform

Post by libelium-dev » Tue Feb 27, 2018 9:21 am

Hi,

That error is returned by your server. You should contact your server in order to know more information about your apikey.

Regards

PJSantos
Posts: 20
Joined: Mon Feb 26, 2018 1:50 pm
Company: Action International

Re: Looking to use HTTP Post to carriots platform

Post by PJSantos » Tue Feb 27, 2018 1:01 pm

libelium-dev wrote:
Tue Feb 27, 2018 9:21 am
Hi,

That error is returned by your server. You should contact your server in order to know more information about your apikey.

Regards
Thanks , now it's working with a different platform (Ubidots) ... my only doubt is:

I have this instruction to build the message which is working --- char data_body[100] = "{\"ph\": 7.2 , \"Temperature\": 20}";

But instead of fixed values like 7.2 I want to put the PH value which come from the PH Sensor (phValue variable) which im reading fine , I've tried many ways and I cant put their value in the message ...

Thanks
-

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Looking to use HTTP Post to carriots platform

Post by libelium-dev » Wed Feb 28, 2018 8:38 am

Glad to hear that now it's working!

You can use snprintf() function to formate a string. You can know how to use it in the UT_07 example
http://www.libelium.com/development/was ... d-strings/

Hope this helps.
Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest