This appendix includes some examples of PPS publishers and subscribers.
Publishers
Here are some examples of a simple publisher that loops forever, changing the value of an attribute. Each publisher also updates its own counter attribute, so we can be sure that the programs are actually working. They assume that the system is using the default PPS directory, /pps.
Subscribers
Here are some examples of a subscriber that works with the publishers given above. They basically loop forever, reading updates to the button object, but each uses a different method of waiting for data.