| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example implements a basic publication/subscription application. In order to launch the example it is required to indicate if the application is run as publisher or subcriber. Therefore, open two terminals and move to the folder where the Python script is located. On the first terminal run the publisher executing the following command:
python3 HelloWorldExample.py -p publisherOn the second terminal run the subscriber as follows:
python3 HelloWorldExample.py -p subscriberAfter launching the publisher application, the publisher will wait until discovering a subscriber, before sending the samples. Once the subscriber is discovered the samples are sent. The QoS settings are by default: BEST_EFFORT and VOLATILE. Consequently, some samples may be lost if the publisher discovers the subscriber earlier. Also, when the publisher sends the last sample, it is destroyed and the samples are removed from the history. Therefore, sometimes the last samples are also not received depending on the network performance.
This example allows the following parameters:
| Back | FazBrowse Home | New Git URL |