The read how many lines exists in the files is no problem.
Next week i will see how to handle it with FAC and FP
With this I create a widget of type TA
mqttClient.publish(&In, "|TA UID:ta1 X:84 Y:26 W:30 H:43 VIS:1 BGC:#b4c5de FGC:#121212 SHE:1 FSZ:4.5 RAD:1.5 BSZ:10 CL:1\r\n");
I have a file on SPIFFS, such as "/test.txt", to which I sometimes append a few lines of text.
The question is, how can I read only the last 10 lines of the file to place it in the ta1 widget?
With BSZ:10 I can show the last 10 lines in "ta1", but the file is read from the beginning, line by line to "ta1" and after all then only shows the last 10 lines.
The reason for my question is that, as I use a GPRS modem, I would like to send as little data as possible via MQTT, in this case want send only the last 10 lines of the file.
To solve this problem, I've written some workaround code, but it's not very elegant
What could be the best solution to this?
Hello Kl3m3n, hope you are doing well
Today I updated to v1.053.1 but it no longer works. Gui-O opens, starts loading the widgets and closes the app at the end.
I've uploaded older versions of my software that have always worked, but with this update they don't work either.
Kl3m3n can you please check what's the problem on?
Thanks, I know this chip, but never used it
I have done in the last 20 years almost all my projects with Bascom and Atmega and Xmega microcontrollers, but there are no libraries like in the Arduino, you have to code everything from scratch. With the Esp32 this task is easier, for this there is the lib can.h and you only need the soic8 driver for the bus.
The advantage is that the Atmega88PA is cheaper than the Esp32 but I will still think about which one to choose
Thanks for the attempt to help
A sincere thank you.
The whole process seems to be quite complex. In my case, it is for Windows.
I am trying to get a fixed IP. The ISP operators want a high value. I will look for cheaper ones.
In the next few days I'll try to install it and do some tests. I will give you my feedback then.
Thanks again for your support.