|
@ -33,7 +33,7 @@ int main() { |
|
|
head << "POST /update HTTP/1.1\n" |
|
|
head << "POST /update HTTP/1.1\n" |
|
|
<< "Host: api.thingspeak.com\n" |
|
|
<< "Host: api.thingspeak.com\n" |
|
|
<< "Connection: close\n" |
|
|
<< "Connection: close\n" |
|
|
<< "X-THINGSPEAKAPIKEY: Z7PNWRYKDEBRX5F7\n" |
|
|
|
|
|
|
|
|
<< "X-THINGSPEAKAPIKEY: 621LKPK58GD7PHSB\n" |
|
|
<< "Content-Type: application/x-www-form-urlencoded\n" |
|
|
<< "Content-Type: application/x-www-form-urlencoded\n" |
|
|
<< "Content-Length:" << string(data.str()).length() << "\n\n"; |
|
|
<< "Content-Length:" << string(data.str()).length() << "\n\n"; |
|
|
sc.send(string(head.str())); |
|
|
sc.send(string(head.str())); |
|
|