point to new api endpoints
This commit is contained in:
parent
0ac8d21284
commit
efc2a61520
|
@ -134,7 +134,7 @@ void loop() {
|
||||||
// connect to remote
|
// connect to remote
|
||||||
WiFiClientSecure client;
|
WiFiClientSecure client;
|
||||||
client.setInsecure();
|
client.setInsecure();
|
||||||
char host[] = "data.lpb-air.com";
|
char host[] = "www.lpb-air.com";
|
||||||
|
|
||||||
// retry on error
|
// retry on error
|
||||||
int retry = 0;
|
int retry = 0;
|
||||||
|
@ -147,7 +147,7 @@ void loop() {
|
||||||
Serial.println("Connection failed");
|
Serial.println("Connection failed");
|
||||||
}
|
}
|
||||||
// build request
|
// build request
|
||||||
client.print(String("POST ") + "/ingest" +
|
client.print(String("POST ") + "/data/in" +
|
||||||
" HTTP/1.1\r\n" +
|
" HTTP/1.1\r\n" +
|
||||||
"Host: " + host + "\r\n" +
|
"Host: " + host + "\r\n" +
|
||||||
"Authorization: Basic " + auth + "\r\n" +
|
"Authorization: Basic " + auth + "\r\n" +
|
||||||
|
|
Loading…
Reference in New Issue