Makerfabs / Lora-Soil-Moisture-Sensor

Lora Soil Moisture Sensor
53 stars 23 forks source link

ESP32-Receiver.ino doesn't compile #13

Open fredmccr opened 9 months ago

fredmccr commented 9 months ago

Hi,

The code given on V3/example/ESP32-Receiver/ESP32-Receiver.ino doesn't compile in Arduino IDE, giving an error (on the web page heading construction part) at line: client.println(str); 'str was not declared in this scope'

I'm using a "MaESP ESP32 Lora Gateway" as a receiver. If I comment the faulty line, I can upload the code, everything works well on the OLED screen, but of course the string (ID, temp, ...) is not displayed on the published web page.

Can someone please help me in fixing that ? Thanks in advance!

fredmccr commented 9 months ago

I found out what was wrong: "String str;" was not at the right position in the sketch. OK after I moved it (and moved "String sensorADC;" as well) just before "void setup()"