From 2d0a529ec32dacee7a7bf63badfa827c84633a95 Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Sat, 10 Apr 2021 14:42:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D1=8F=D0=B5=D0=BC=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B8=D0=B9?= =?UTF-8?q?=20IP=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8F=20=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=B0=D0=BA=D0=B5=D1=82=D0=B5=20(=D0=BF=D1=80=D0=B8=D0=B3?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D1=82=D1=81=D1=8F=20=D0=BD=D0=B0=20=D0=B1?= =?UTF-8?q?=D1=83=D0=B4=D1=83=D1=89=D0=B5=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thermo_sensor/thermo_sensor.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermo_sensor/thermo_sensor.ino b/thermo_sensor/thermo_sensor.ino index 17dc9db..aefa276 100644 --- a/thermo_sensor/thermo_sensor.ino +++ b/thermo_sensor/thermo_sensor.ino @@ -60,7 +60,7 @@ void ReadAndSend() Convert(h, h_str); Convert(t, t_str); - int len = snprintf(payload, sizeof(payload), "{\"t\":%s,\"h\":%s,\"id\":\"%s\"}", t_str, h_str, id); + int len = snprintf(payload, sizeof(payload), "{\"t\":%s,\"h\":%s,\"id\":\"%s\",\"ip\":\"%s\"}", t_str, h_str, id, WiFi.localIP().toString().c_str()); Serial.print("Sending payload:\n"); Serial.println(payload);