I have a text object on my HMI called ‘temp1’, my Arduino has the following 4 lines of code that works fine:
char buffer[10] = {0};
NexText temp1 = NexText(1, 52, “temp1”);
memset(buffer, 0, sizeof(buffer));
temp1.getText(buffer, sizeof(buffer));
But, I’d really like the function below to replace the buffer approach, but it just doesn’t work. I think there’s an error in the Library.
NexText temp1 = NexText(1, 52, “temp1”);
temp1.getText(&temp1);