-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't set konf_neigung to non-integer value #15
Comments
Any progress here? |
Nope. |
And when you set it to 1.4 using the web interface vitodata100, what does |
I set 1,4 on the web interface and get the expected value:
|
At https://github.com/maxatome/go-vitotrol/blob/master/vitotrol.go#L39, you can try to add: client := &http.Client{}
+ log.Println("SEND(" + reqBody + ")")
req, err := http.NewRequest("POST", MainURL, to check you have well: SEND(<DatapointId>…</DatapointId><Wert>1.4</Wert>) after recompiling when you do:
|
Ok, can you refresh my mind how to Compiler the changes? |
↓
|
Yes, I saw
|
In this case I don't know what to do to fix this issue, as if 1.4 is well sent then I don't understand why the server only keeps the integer part :( |
we can try "sort"
+ "strings"
) then just before the client := &http.Client{}
+ reqBody = strings.Replace(reqBody, ".", ",", 1)
+ log.Println("SEND(" + reqBody + ")")
req, err := http.NewRequest("POST", MainURL, |
I am debugging further with setting also on the vitotrol100 web interface. Therse seems to be some delay. A mouse over the field says that there is only a gradual and delayed change. Maybe that is reason why the change isn't reflected by the rget call... |
Great, this fixed the problem:
Many thanks, merci beaucoup. |
Cool! We are lucky :D |
Closes #15. Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
Closes #15. Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
Closes #15. Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
Closes #15. Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
Thanks, it works:
|
Cool! |
I try to set the konf_neigung_rw-0x0b35 to 1.3 but it finally rounds the value (seen by rget) although it prints that the wanted value was successfully set. At the Vitodens-300W I see 1,0 instead of 1,3
The text was updated successfully, but these errors were encountered: