I am currently trying to have my Nextion Display (NX8048P070) display whether my bluetooth is connected.
I have all the code working that shows what state the bluetooth is, its now sending this result to the display...
i have followed the guide PerryBebbington has made which has been very helpful, but i cant seem to get mine to display in my text box, selected in picture below:
I have used various custom names for text boxes and so far have not found one it objects to. You could try first just creating a new text box and use the default name, then if that works try changing the name.
My guess is that you have a simple mistake somewhere that you can't see because you have been looking at it too long. A single incorrect character will mean it won't work. If you are still struggling tomorrow post your full non working code and I'll have a look. Do you know for sure that the else if actually gets executed? Put some serial prints in to the serial monitor to prove it.
More...
I don't see that you need so many conditions in the else if, I think you just need else.