mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
fix float & long
This commit is contained in:
@@ -152,7 +152,8 @@ public:
|
|||||||
{
|
{
|
||||||
uint16_t val1, val2;
|
uint16_t val1, val2;
|
||||||
response.get(3, val1);
|
response.get(3, val1);
|
||||||
response.get(4, val2);
|
response.get(5, val2);
|
||||||
|
Serial.printf("COUNT 2: %02X - %02X\n", (int)val1, (int)val2);
|
||||||
long val = val1 | val2 << 16;
|
long val = val1 | val2 << 16;
|
||||||
regEvent((float)val, "ModbusNode");
|
regEvent((float)val, "ModbusNode");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user