- Thu Aug 21, 2014 11:08 am
#173948
I have tried posting data from CC3100 TI Platform to Sparfun data stream and it seems not working. I tried google postman and was able to POST the data. Below the stream. Kindly help me. Below are the three different type of Buffer I constructed to send the data.
below is my data stream
https://data.sparkfun.com/streams/MGGw9XdDNMs0QxRZ9EWG
insert url: https://data.sparkfun.com/input/MGGw9Xd ... temp=11.57
Below are the different tests I did
Test 1
#define PREFIX_BUFFER "POST https://data.sparkfun.com/input/MGGw9Xd ... temp=11.57"
Test 2
#define PREFIX_BUFFER "POST /input/MGGw9XdDNMs0QxRZ9EWG?private_key=nzz4MvnxlVhxXzbgRdo4&humidity=2.18&temp=11.57 HTTP/1.1\r\n"
#define POST_BUFFER2 "Host: data.sparkfun.com\r\n"
Test 3
#define PREFIX_BUFFER "POST /input/MGGw9XdDNMs0QxRZ9EWG?private_key=nzz4MvnxlVhxXzbgRdo4&humidity=2.18&temp=11.57 HTTP/1.1\r\n"
#define POST_BUFFER2 "Host: data.sparkfun.com\r\n"
#define POST_BUFFER3 "Content-Type:application/x-www-form-urlencoded \r\n"
#define POST_BUFFER4 "Content-Length: 25 \r\n"
#define POST_BUFFER5 "humidity=2.18&temp=11.57"
All three nothing is being returned. Kindly help me.
below is my data stream
https://data.sparkfun.com/streams/MGGw9XdDNMs0QxRZ9EWG
insert url: https://data.sparkfun.com/input/MGGw9Xd ... temp=11.57
Below are the different tests I did
Test 1
#define PREFIX_BUFFER "POST https://data.sparkfun.com/input/MGGw9Xd ... temp=11.57"
Test 2
#define PREFIX_BUFFER "POST /input/MGGw9XdDNMs0QxRZ9EWG?private_key=nzz4MvnxlVhxXzbgRdo4&humidity=2.18&temp=11.57 HTTP/1.1\r\n"
#define POST_BUFFER2 "Host: data.sparkfun.com\r\n"
Test 3
#define PREFIX_BUFFER "POST /input/MGGw9XdDNMs0QxRZ9EWG?private_key=nzz4MvnxlVhxXzbgRdo4&humidity=2.18&temp=11.57 HTTP/1.1\r\n"
#define POST_BUFFER2 "Host: data.sparkfun.com\r\n"
#define POST_BUFFER3 "Content-Type:application/x-www-form-urlencoded \r\n"
#define POST_BUFFER4 "Content-Length: 25 \r\n"
#define POST_BUFFER5 "humidity=2.18&temp=11.57"
All three nothing is being returned. Kindly help me.