Start a new topic

How Can I get value of a system variable to Arduino?

Hi, 

I'm using library "https://github.com/itead/ITEADLIB_Arduino_Nextion".


I would like to get value of "sys0", "sys1", or new system variable "dp" to Arduino. 


I have not been able to find out how to read the system variables via the serial port using arduino library.

 

I am sending the command with the following code.

 

//--------------------------------

SendCommand ("get dp");

//--------------------------------

 

But how do I read the return value?

 

If I want to get the data on a certain page, there is no problem with it. I define the variable as follows and read the return value.

 

//--------------------------------

NexVariable dpk1_Gun = NexVariable(7, 4, "Gun");

dpk1_Gun.getValue(&DersGunu);

//--------------------------------

 

 

So, if I wanted to define the system variable, how would I describe it in arduino, or how would I read the return value of a command like "SendCommand ("get dp");".

Login or Signup to post a comment