Search found 15 matches
- Tue Aug 07, 2018 9:27 am
- Forum: ESP32 Arduino
- Topic: How can I pass a value from Arduino C To HTML?
- Replies: 11
- Views: 30161
Thanks for the help!!!!
Hello Archibald, sadly your solution didn´t work but I found one elsewhere. I really appreciate your help and of course of the others that tried to help too. I enjoy this forum and it´s friendly users very much!!!!! :D :D :D :D :D Here´s the final code for all people that may be interested. #include...
- Mon Aug 06, 2018 10:14 am
- Forum: ESP32 Arduino
- Topic: How can I pass a value from Arduino C To HTML?
- Replies: 11
- Views: 30161
Re: How can I pass a value from Arduino C To HTML?
Hello Archibald, Yes - you´re right. One has to use "server.send"!! With server.send_P I got errormessages. Using "server.send" and omitting "PROGMEM[]" did the trick. I don´t have to save memory so I shouldn´t have used it to begin with. There´s one last question: If you look at the code you might ...
- Mon Aug 06, 2018 1:29 am
- Forum: ESP32 Arduino
- Topic: How can I pass a value from Arduino C To HTML?
- Replies: 11
- Views: 30161
I can pass a value from Arduino C To HTML now!!!
Finally it works - I had to get rid of the PROGMEM[] stuff - here´s the code and thanks a 1000 times for your help!!!!! /* ESP8266 Temperatur WiFi-Sensor -19.07.2018 - pb - */ #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> #include <OneWire.h>...
- Mon Aug 06, 2018 12:47 am
- Forum: ESP32 Arduino
- Topic: How can I pass a value from Arduino C To HTML?
- Replies: 11
- Views: 30161
Re: How can I pass a value from Arduino C To HTML?
Dear Archibald, Were you seeing "This should show the temperature" in your computer's browser before you made the last edit ? Yes - because I was the one who made that statement - it was meant to be an example but all it did was making a mess :( Sorry!! This time it compiles - but I can´t see a thin...
- Sun Aug 05, 2018 10:51 pm
- Forum: ESP32 Arduino
- Topic: How can I pass a value from Arduino C To HTML?
- Replies: 11
- Views: 30161
Re: How can I pass a value from Arduino C To HTML?
First of all thanks to everybody for your answers!! @Archibald I tried your solution but I get an errormessage "assignment of read-only variable 'index_html'" Here´s the code so far!!! /* ESP8266 Temperatur WiFi-Sensor -19.07.2018 - pb - */ #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <...
- Sun Aug 05, 2018 11:58 am
- Forum: ESP32 Arduino
- Topic: How can I pass a value from Arduino C To HTML?
- Replies: 11
- Views: 30161
How can I pass a value from Arduino C To HTML?
Hello everybody, I ´ve built a simple WIFi - thermometer with an esp8266 and a DS18B20 sensor. The software produces a simple webpage that can be viewed with a computer, cell phone and so on. I like that much better than using just the "server.send(200, "text/plain"" command but there´s one catch!! ...
- Tue Jul 03, 2018 1:01 pm
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 22267
Re: Separate Values from a String
Mystery is solved - this is what the display "really" shows - I reduced the text-size of "temperature" and found out!!
"tft.print(temperature,1);" does the trick - case closed! Thanks and good bye!!!
"tft.print(temperature,1);" does the trick - case closed! Thanks and good bye!!!
- Tue Jul 03, 2018 12:49 pm
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 22267
Re: Separate Values from a String
UPDATE!!!!!
When I declare "int temperature" instead of "float temperature" the phenomenon does not appear - see picture!!!
When I declare "int temperature" instead of "float temperature" the phenomenon does not appear - see picture!!!
- Tue Jul 03, 2018 11:38 am
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 22267
Re: Separate Values from a String
Thanks again for all you did for me - and of course I´ve changed "hpa" to "hPa"
BTW: I do print the integer and float values to the display - the old "substring-code" is commented out!
all the best!!!!!!!
Peter
BTW: I do print the integer and float values to the display - the old "substring-code" is commented out!
Code: Select all
//tft.print(weatherdata.substring(0,4));// air pressure
Peter
- Tue Jul 03, 2018 10:25 am
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 22267
Re: Separate Values from a String
Hello Archibald, I implemented your code and it works - of course. My webserver now sends "1017,23.8,28". But there is one strange phenomenon :o Display.JPG The value "humidity" has a strange "frame" now that wasn´t there before. BTW: Excuse me for all those questions and misunderstandings - I´m goo...