mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-20 20:22:08 +02:00
Fix uri formatting postToServer to use apiRoot
This commit is contained in:
@ -107,9 +107,7 @@ bool AgApiClient::postToServer(String data) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
String uri =
|
String uri = apiRoot + "/sensors/airgradient:" + ag->deviceId() + "/measures";
|
||||||
"http://hw.airgradient.com/sensors/airgradient:" + ag->deviceId() +
|
|
||||||
"/measures";
|
|
||||||
// logInfo("Post uri: " + uri);
|
// logInfo("Post uri: " + uri);
|
||||||
// logInfo("Post data: " + data);
|
// logInfo("Post data: " + data);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user