pvbrowser manual
Back Content Forward

programming

The pvserver will send ASCII text to the pvbrowser client, which will interpret the text and call the according Qt methods. Also the pvbrowser client will send ASCII text to pvserver, when an event like button pressed occurs. The developer of a pvserver will not have to know this ASCII text, instead he/she will use corresponding utility functions.

Here is a typical utility function.

int pvSetValue(PARAM *p, int id, int value)
{
char buf[80]; 
  sprintf(buf,"setValue(%d,%d)\n",id,value);
  pvtcpsend(p, buf, strlen(buf));
  return 0;
}

The reference to the utility functions can be found here Utility Functions Reference

Here you can find which utility functions apply to a special widget. Utility Functions according to Widgets


Back Content Forward