Reworked http;begin call to conform new ESP lib

This commit is contained in:
Charles 2016-05-09 15:49:08 +02:00
parent f0e4a198c8
commit 8069dde82f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ boolean httpPost(char * host, uint16_t port, char * url)
unsigned long start = millis(); unsigned long start = millis();
// configure traged server and url // configure traged server and url
http.begin(host, port, url, port==443 ? true : false); http.begin(host, port, url);
//http.begin("http://emoncms.org/input/post.json?node=20&apikey=2f13e4608d411d20354485f72747de7b&json={PAPP:100}"); //http.begin("http://emoncms.org/input/post.json?node=20&apikey=2f13e4608d411d20354485f72747de7b&json={PAPP:100}");
//http.begin("emoncms.org", 80, "/input/post.json?node=20&apikey=2f13e4608d411d20354485f72747de7b&json={}"); //HTTP //http.begin("emoncms.org", 80, "/input/post.json?node=20&apikey=2f13e4608d411d20354485f72747de7b&json={}"); //HTTP