master
SmartUA 2021-05-28 13:19:17 +03:00
parent 4c17c8034b
commit f0918088e5
2 changed files with 2 additions and 2 deletions

View File

@ -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"];