Receiving information from Nextion

Negativ3_Keyboard.zip (15.4 KB)

@negativ3
Sample code and HMI file.

I have assumed that the text box will have 10 characters, you will have to modify the code for different numbers of characters.

I have never used or even attempted to use a keyboard, so had not taken them into account.
I have added another byte (numBytes) to the data from the Nextion, which indicates how many bytes follow.
I have added code to take this into account.
The text from the text box will be left in the char array printBuffer[20];
There is nothing significant about the sizes of the various arrays, other than they are more than big enough.
The code is untidy in places, and there is probably stuff in there that isn't needed and stuff that can be improved.

Have fun!

1 Like