point to new api endpoints

This commit is contained in:
simon 2021-07-07 19:16:33 +07:00
parent 0ac8d21284
commit efc2a61520
1 changed files with 2 additions and 2 deletions

View File

@ -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" +