You’ve attempted to set a text string to the null character. pgmData[0] is the number 0, not the ascii string ‘0’.
You’ll need to convert your number to ascii string before you can use Pt_ARG_TEXT_STRING. There are a multitude of different ways to accomplish this, the easiest is probably using itoa() or sprintf().
It works but set only one values and next i get error “Memory fault (core dumped)”
What is wrong ? . I should run “displayValue” in new thread or maybe invoke in “main” ??
Photon is not thread safe, you need to wrap the calls with PtEnter and PtLeave. It`s also best if you post the real code, the second line “args[0]” is wrong.