RomeHein / ESPecial

ESP32 automation with web interface and telegram bot
GNU General Public License v3.0
111 stars 17 forks source link

can not setup MQTT parameters,then can not send data to cloud #27

Open lyxer123 opened 1 year ago

lyxer123 commented 1 year ago

can not setup MQTT parameters some parameters as below.

Friendly name:bld Host:test.mosquitto.org port:1883 User:lyx Password:12345678 Topic:v1/devices/me/telemetry

but these parameters can not set

josef2600 commented 1 year ago

there are many problems with old libraries, this is an old project. you have to change many things for it to be able to make it work correctly. first read all the previous posts, then you can ask RomeHein for a new version. many libraries have completely changed their functions and coding. read all the posts. i tried to explain how to do. and there are some parts that needs changing. but since i don't (cant!) work with GitHub programming system, it is a real mess! this program is almost a perfect project, but most problematic is about the memory usage. as you can see, it has the data codes, around 85 k byte just for ram that will get double and then we have the automation registers size that gets around 85 k byte at a given time and many many more! it eat the memory like nothing. if you don't change anything, at most, without psram, and without camera, you only get the maximum of around 8 automation at best! otherwise the memory will gets full and it crashes. and i sow some of your code. you didn't correctly convert it from Arduino to idf. it is bad! many many names have to be renamed. and AsyncEventSource and AsyncTCP are very old libs and completely bad libs. you need fixed ones. just search for it. there are many good forks for them. they don't work!