I am using Nextion Library from bborncr; it is really easy and fast.
I have one issue: some of my settings data, which I enter in Nextion display, are above 2^16 (65536); for example (66000), I only received the rest after 65536, which was 464. So, any number above 65536 can't be received correctly. I tried with different values; all were correct except the numbers above 65536.
Please advise.
I moved your topic to an appropriate forum category @HayderIsmael.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
I'm not familiar with the library and you have not given us any clue about your code, so what follows is a general outline of how to approach this.
I am guessing you have some kind of keypad on your Nextion into which you enter your 'setting data' (for???). Each key press is a single digit with a value from 0 to 9, no where near the limit of 65535. You send the key presses to your Arduino and have the code on that assemble them into whatever number they represent.
So if the "fr" is less than 65535, I got all the values correctly. I receive incorrect values if the "fr" is larger than 65535. I think there is a problem in the library itself as it is set to receive int not long. However, I am not sure how to fix the library.
side note : I'm not overwhelmed by the quality of the code in the library since it does not even use references for all the String parameters... seems a recipe for disasters. (but I don't use Nextion's screens anyway, so ...)
A few years ago, the library developer fixed the problem with myNextion.getComponentValue by changing it from int to long.
In myNextion.getComponentValue, it is more complicated for me as many lines and sorts of arrays need to be fixed, too.
Again, I am so sorry for putting the wrong function.
Do you have more than 32767 individual keys on the keypad? Any reason you could not use a translation table, using the number from the keypad as an index into a table of long integers on the arduino?
Thanks, @david_2018, for your reply
I am not sure I understood the suggestion. What did you mean by 32767 individual keys?
To avoid receiving numbers larger than int, I added variables in Nextion and a timer to divide my values by 100, then in Arduino code I did the following