Start a new topic

Arduino Command-Transfer

 Hello,
I do not use a library.
When I enter in the editor:

WertCo.val=237

then this works

When I enter in the editor:

click Übersicht,1

then this works

When I send with the Arduino

Serial.print("WertCo.val=");//Variable
    Serial.print(Nexppm);//237
    Serial.write(NexT,3);//Terminator

then this works

When I send with the Arduino

Serial.print("LuftdruckLage.txt=\"");
  Serial.print("Regen");
  Serial.write('"');
  Serial.write(NexT,3);  
  Serial.print("ref regen3");
  Serial.write(NexT,3);

then this works, all well!
Then in the editor I enter

WertCo.val=237
click Übersicht,1

then this works, all well!

But how do I transfer the command-

click Übersicht,1

With the Arduino ??

Greeting and thanks
Andreas


  Serial.print("click Übersicht,1");

  Serial.write(NexT,3);

Better avoid having umlauts in your component names - may lead to issues if the code set does not match.

 


1 person likes this
Hello,

"Serial.print("click Übersicht,1");
Serial.write(NexT,3);"

nice try?!

There are the muck's umlauts...

Serial.print("click Uebersicht,1");
Serial.write(NexT,3);

then this works
I'm still mad here…

Andreas says thank you
Greeting
Andreas

 

Simplified

All Nextion commands sent over serial are data terminated

  with three bytes 0xFF 0xFF 0xFF


NexT needs to be defined

byte  NexT[3] = {255,255,255};


IF HMI component .objname has umlauts

  then command over serial requires umlauts.


Refer to iso-8859 used for the HMI and what you are using

as settings for your system locale.


If your question is how to produce Ü in Arduino code

  you might need to replace with escape \xDC


If this is someone else's code .. ask to modify for your needs

Hello,
I already know that

In the Nextion editor "Ü" works without problems.
I thought "serial" also, that is not so- I learned.
But thank you for your trouble.
Greeting
Andreas

 

So I am not understanding what your troubles are.

Login or Signup to post a comment