Comments (1)
It seems to be a timing issue - If you add a delay before the command it works:
uint8_t Nextion::pageId(void){
sendCommand("sendme");
delay(200);
int a = -1;
String pagId = listen();
Serial.print("ID = ");
Serial.print(pagId);
Serial.println("<-");
if(pagId != ""){
return pagId.toInt();
}
return -1;
from nextion.
Related Issues (20)
- Anybody had luck getting this to work with platformio + stm32duino?
- 'class Nextion' has no member named 'listen' HOT 1
- Arduino Mega
- Hardware Serial gets annoying values
- not at all as expected in editor HOT 3
- puzzled by output of ReceiveMessages HOT 1
- junk values obtained from display
- set the value of en on a timer HOT 1
- send value to a component text an other page HOT 2
- get the page id of current page HOT 1
- getComponentText
- Need help with getComponentText and getComponentValue HOT 1
- Receive problem
- Need help with "sendCommand".
- Weired output on getComponentValue HOT 2
- Отправка команды с Arduino Nano в Nextion HOT 1
- how to change orientation of display from arduino.
- Library gives errors. Nextion::ack() HOT 3
- exit status 1 'Nextion' does not name a type; did you mean 'nextion'? solution: install ITEADLIB_Arduino_Nextion-master AND bborncr-nextion-library
- Error in receiving values larger than 65536
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextion.