Hi all,
I have this Display
and this Display Driver
I'am able to connect to the display and send some basic Information to it.
Now my goal is to get an value via http from my homematic and send this to the display.
With this code I get the value:
String dummyURL = "http://192.168.178.60/config/xmlapi/state.cgi?datapoint_id=3818";
http.begin(dummyURL);
int httpResponseCode = http.GET();
String payload = http.getString();
-> Output is e.g.
<?xml version="1.0" encoding="ISO-8859-1" ?>So I'am only intrested in the first 3 numbers of the value i extract them with
String temp = payload.substring(83, 86);
float value = temp.toFloat();
->Output is
temp -> 2.0
value -> 2.00
At this moment I want to send this value to the display with
display.print(temp); -> Display does not show anything
display.print(value, 1); -> display shows 0.00
display.print("Hello World"); -> display shows "Hello World"
How do I get an String, Int or Float to the Display?
Regard
quaker