mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
Применяем округление значений при отправке данных в режиме 2
This commit is contained in:
@@ -100,7 +100,7 @@ class UART : public IoTItem {
|
|||||||
printStr += eventItem->getID();
|
printStr += eventItem->getID();
|
||||||
printStr += "=";
|
printStr += "=";
|
||||||
if (eventItem->value.isDecimal)
|
if (eventItem->value.isDecimal)
|
||||||
printStr += eventItem->value.valD;
|
printStr += eventItem->getRoundValue();
|
||||||
else {
|
else {
|
||||||
printStr += "\"";
|
printStr += "\"";
|
||||||
printStr += eventItem->value.valS;
|
printStr += eventItem->value.valS;
|
||||||
|
|||||||
Reference in New Issue
Block a user