From 6892beeb388faf3cd7d17e8f586e9a1bcd585b79 Mon Sep 17 00:00:00 2001 From: DmitriyTychina Date: Sun, 10 Sep 2023 18:32:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=20"Update=20device=20data:=20"=20=D0=B4?= =?UTF-8?q?=D0=B0=D0=B2=D0=B0=D0=BB=20=D0=BD=D0=B5=D0=BF=D0=B5=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=B0=D0=B5=D0=BC=D1=8B=D0=B9=20=D1=81=D0=B8=D0=B2=D0=BE?= =?UTF-8?q?=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/Statistic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Statistic.cpp b/src/utils/Statistic.cpp index 621e1de5..1b34bf72 100644 --- a/src/utils/Statistic.cpp +++ b/src/utils/Statistic.cpp @@ -34,7 +34,7 @@ void updateDeviceStatus() { int httpResponseCode = http.POST(httpRequestData); if (httpResponseCode > 0) { - ret = httpResponseCode; + ret = http.errorToString(httpResponseCode).c_str(); if (httpResponseCode == HTTP_CODE_OK) { String payload = http.getString(); ret += " " + payload;