From f0918088e5e71cb4802a0ebb1893461d089a146b Mon Sep 17 00:00:00 2001 From: SmartUA Date: Fri, 28 May 2021 13:19:17 +0300 Subject: [PATCH] callback --- AAOffice_ventatom/AAOffice_ventatom.ino | 4 ++-- ...Microsoft Word.docx => Описание. Управление сервой.docx} | Bin 2 files changed, 2 insertions(+), 2 deletions(-) rename AAOffice_ventatom/{Документ Microsoft Word.docx => Описание. Управление сервой.docx} (100%) diff --git a/AAOffice_ventatom/AAOffice_ventatom.ino b/AAOffice_ventatom/AAOffice_ventatom.ino index 7510155..e2703ea 100644 --- a/AAOffice_ventatom/AAOffice_ventatom.ino +++ b/AAOffice_ventatom/AAOffice_ventatom.ino @@ -263,7 +263,7 @@ void callback(char *topic, byte *payload, unsigned int length) Serial.print("Message arrived ["); Serial.print(topic); Serial.print("] "); - + char jsonResult[250]; for (int i = 0; i < length; i++) @@ -283,7 +283,7 @@ void callback(char *topic, byte *payload, unsigned int length) // {"percent":50,"speed":20} //сделать проверку на байті - SetAngle = docResult["percent"]; + SetAngle = docResult["percent"]; SpeedAngle = docResult["speed"]; //0-100 // byte isTimer = docResult["timer"]; diff --git a/AAOffice_ventatom/Документ Microsoft Word.docx b/AAOffice_ventatom/Описание. Управление сервой.docx similarity index 100% rename from AAOffice_ventatom/Документ Microsoft Word.docx rename to AAOffice_ventatom/Описание. Управление сервой.docx