Hi all,
I am testing a setup with Arduino uno with ethernet shield, API Version = API1.0.0.118 and IDE.
I want to read gas and water consumption using reed contact. However, I am having trouble sending float values, values in HS don't have decimal places and are multiplied with 100. In my systems, comma is decimal mark, so probably linked with regional settings?
In my log, I have:
mrt-18 22:52:23 Arduino Plugin New UDP Text Recieved = 1 API 4 24.00
mrt-18 22:52:23 Arduino Plugin Board 1, Device Ref = 726, API Input 4, Value = 2400, String = 2400liter
mrt-18 22:52:23 Arduino Plugin Data Received:1 API 4 24.00
mrt-18 22:52:23 Arduino Plugin Sent to IP:192.168.1.80 Port No:8900 = 1 h ,Ack Command
mrt-18 22:52:23 Arduino Plugin Board 1, Device Ref = 724, API Input 3, Value = 2, String = 2m3
mrt-18 22:52:23 Arduino Plugin New UDP Text Recieved = 1 API 3 0.02
mrt-18 22:52:23 Arduino Plugin Data Received:1 API 3 0.02
I created text value range with 2 decimal places as suggested here:
https://forums.homeseer.com/showthread.php?t=171392
I am testing a setup with Arduino uno with ethernet shield, API Version = API1.0.0.118 and IDE.
I want to read gas and water consumption using reed contact. However, I am having trouble sending float values, values in HS don't have decimal places and are multiplied with 100. In my systems, comma is decimal mark, so probably linked with regional settings?
In my log, I have:
mrt-18 22:52:23 Arduino Plugin New UDP Text Recieved = 1 API 4 24.00
mrt-18 22:52:23 Arduino Plugin Board 1, Device Ref = 726, API Input 4, Value = 2400, String = 2400liter
mrt-18 22:52:23 Arduino Plugin Data Received:1 API 4 24.00
mrt-18 22:52:23 Arduino Plugin Sent to IP:192.168.1.80 Port No:8900 = 1 h ,Ack Command
mrt-18 22:52:23 Arduino Plugin Board 1, Device Ref = 724, API Input 3, Value = 2, String = 2m3
mrt-18 22:52:23 Arduino Plugin New UDP Text Recieved = 1 API 3 0.02
mrt-18 22:52:23 Arduino Plugin Data Received:1 API 3 0.02
I created text value range with 2 decimal places as suggested here:
https://forums.homeseer.com/showthread.php?t=171392
Comment