Hello @mattyra,
Your questions are justifiable and the answers have already been given at this thread Easy Nextion Library - #53 by Seithan
-
I have not found any other way to send or receive float values, except for this one.
-
There is the EEPROM of Nextion, where you can store and read data. This is a little difficult, as it requires a lot of general programming knowledge. Unless you have an Intelligent model of Nextion and you can use the dataRecord component. That way it is a little easier.
-
As for the slider, it can be used to send a number to MCU with a simple trigger() function, that would contain the readNumber() function.
myNex.readNumber("h0.val");
maxval
should be set to 12 andminval
to 1 on the slider's properties -
Every value can be sent from ESP to Nextion and from Nextion to ESP
It seems like an easy project but it needs a lot of work, because it looks like a big project. You can do everything you want for the project and find many answers to the library's documentation and examples.
Some links to my site that will prove useful: